to_mu_sd_lnorm: Parameter Conversion for Lognormal Distribution

Description Usage Arguments Details Value See Also Examples

View source: R/lnormpar.R

Description

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

Usage

1
to_mu_sd_lnorm(mulog, sdlog)

Arguments

mulog

a vector of logarithm means of lognormal distributions

sdlog

a vector of logarithm standard deviations of lognormal distributions

Details

The purpose of this function is to convert the parameterization of lognormal distribution in the form of logarithm mean and logarithm standard deviation to the form of mean and standard deviation.

Value

a list of two items

mu

a vector of the means of lognormal distributions

sd

a vector of the standard deviations of lognormal distributions

See Also

to_mulog_sdlog_lnorm

Examples

1
2
to_mu_sd_lnorm(2, 1)
to_mu_sd_lnorm(c(2, 4), c(1, 1))

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