to_mu_sd_lnorm: Parameter Conversion for Lognormal Distribution

View source: R/lnormpar.R

to_mu_sd_lnormR Documentation

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)

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

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


mixR documentation built on Oct. 20, 2024, 9:07 a.m.