Density, cumulative distribution, quantile functions and random number generation for the distribution that becomes normal after the Logit transformation.
dlogitnorm(q, mu =0, sigma =1, log =FALSE)plogitnorm(q, mu =0, sigma =1)qlogitnorm(p, mu =0, sigma =1)rlogitnorm(n =1, mu =0, sigma =1)
Arguments
q: vector of quantiles.
mu: vector of location parameters (means).
sigma: vector of scale parameters.
log: if TRUE, then probabilities are returned in logarithms.
p: vector of probabilities.
n: number of observations. Should be a single number.
Returns
Depending on the function, various things are returned (usually either vector or scalar):
dlogitnorm returns the density function value for the provided parameters.
plogitnorm returns the value of the cumulative function for the provided parameters.
qlogitnorm returns quantiles of the distribution. Depending on what was provided in p, mu and sigma, this can be either a vector or a matrix, or an array.
rlogitnorm returns a vector of random variables generated from the logitnorm distribution. Depending on what was provided in mu and sigma, this can be either a vector or a matrix or an array.
Details
The distribution has the following density function: