View source: R/normal2Lognormal.R
normal2Lognormal | R Documentation |
These are two convenience functions that takes the mean and the standard deviation of a normal distribution and returns the corresponding values for the lognormal distibution of the values, and vice versa.
normal2Lognormal(mean = NULL, sd = NULL)
logNormal2normal(mean = NULL, sd = NULL)
mean |
Numerical. Mean (or meanlog) parameter. |
sd |
Numerical. Standard deviation (or scale) parameter. |
normal2Lognormal
: A list of "mean" and "sd", giving the mean and scale parameter of the
lognormal distribution, suited to be used later in e.g. gamlss.dist
,
logNormal2normal
: A list of mean and standard deviation of a the corresponding normal distribution.
Jens Åström, Bård Pedersen
logNormPar <- normal2Lognormal(mean = 100, sd = 10)
logNormal2normal(logNormPar[[1]], logNormPar[[2]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.