When we use a distribution in R the command is always dnorm,pnorm,qnorm, for example. Is there a way to find the formulas for this distributions?
It would be nice If I could see every distribution in this way:
`dgumbel <- function(x,mu,s){ # PDF
exp((mu - x)/s - exp((mu - x)/s))/s
}
pgumbel <- function(q,mu,s){ # CDF
exp(-exp(-((q - mu)/s)))
}
qgumbel <- function(p, mu, s){ # quantile function
mu-s*log(-log(p))
}`
Is this possible?