to_mulog_sdlog_lnorm | R Documentation |
The function to_mulog_sdlog_lnorm
converts the mean and standard deviation to
the logarithm mean and logarithm standard deviation
to_mulog_sdlog_lnorm(mu, sd)
mu |
a vector of means of lognormal distributions |
sd |
a vector of standard deviations of lognormal distributions |
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.
a list of two items
mulog |
a vector of lognormal means of lognormal distributions |
sdlog |
a vector of lognormal standard deviations of lognormal distributions |
to_mu_sd_lnorm
to_mulog_sdlog_lnorm(2, 1)
to_mulog_sdlog_lnorm(c(2, 4), c(1, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.