Calculate the mean of a distribution whose logit is Gaussian
Source:R/logitNormMean.R
logitNormMean.Rd
Adapted from logitnorm package. Calculates the mean of a distribution whose logit is Gaussian. Each row of muSigmaMat is a mean and standard deviation on the logit scale.
Details
If \(\mbox{logit}(Y) \sim N(\mu, \sigma^2)\), This function calculates \(E[Y]\) via either numerical integration or by assuming that Y follows a logistic distribution. Under this approximation, setting \(k = 16 \sqrt(3) / (15 \pi)\), we approximate the expectation as: $$E[Y] = expit(\mu / \sqrt(1 + k^2 \sigma^2))$$. The above logistic approximation speeds up the computation, but also sacrifices some accuracy.