to_mulog_sdlog_lnorm {mixR} | R Documentation |
Parameter Conversion for Lognormal Distribution
Description
The function to_mulog_sdlog_lnorm
converts the mean and standard deviation to
the logarithm mean and logarithm standard deviation
Usage
to_mulog_sdlog_lnorm(mu, sd)
Arguments
mu |
a vector of means of lognormal distributions |
sd |
a vector of standard deviations of lognormal distributions |
Details
The purpose of this function is to convert the parameterization of lognormal distribution in the form of mean and standard deviation to the form of logarithm mean and logarithm standard deviation. It can be used for specifying the initial values for the EM algorithm when the first-hand initial values are in the form of mean and standard deviation from K-means clustering algorithm.
Value
a list of two items
mulog |
a vector of lognormal means of lognormal distributions |
sdlog |
a vector of lognormal standard deviations of lognormal distributions |
See Also
Examples
to_mulog_sdlog_lnorm(2, 1)
to_mulog_sdlog_lnorm(c(2, 4), c(1, 1))