View source: R/lnorm_converter.R
lnorm_mean | R Documentation |
Functions to convert parameters of a log-normal distribution to meaningfull values on the response scale.
lnorm_mean(meanlog, sdlog, ...)
lnorm_median(meanlog, ...)
lnorm_var(meanlog, sdlog, ...)
lnorm_sd(meanlog, sdlog, ...)
meanlog, sdlog |
mean and standard deviation of the distribution
on the log scale with default values of |
... |
Not used |
x <- rlnorm(1e4, meanlog = 1.5, sdlog = 1.2)
m <- lm(log(x) ~ 1)
meanlog <- coef(m)
sdlog <- sigma(m)
lnorm_mean(meanlog, sdlog)
mean(x)
lnorm_median(meanlog, sdlog)
median(x)
lnorm_sd(meanlog, sdlog)
sd(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.