Learn R Programming

mixR (version 0.2.1)

to_mu_sd_lnorm: Parameter Conversion for Lognormal Distribution

Description

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

Usage

to_mu_sd_lnorm(mulog, sdlog)

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

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.

See Also

to_mulog_sdlog_lnorm

Examples

Run this code
to_mu_sd_lnorm(2, 1)
to_mu_sd_lnorm(c(2, 4), c(1, 1))

Run the code above in your browser using DataLab