to_mulog_sdlog_lnorm: Parameter Conversion for Lognormal Distribution

Description Usage Arguments Details Value See Also Examples

View source: R/lnormpar.R

Description

The function to_mulog_sdlog_lnorm converts the mean and standard deviation to the logarithm mean and logarithm standard deviation

Usage

1

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

to_mu_sd_lnorm

Examples

1
2

mixR documentation built on June 1, 2021, 5:07 p.m.