normal2Lognormal: Transform normal distribution to log-normal, and vice versa

View source: R/normal2Lognormal.R

normal2LognormalR Documentation

Transform normal distribution to log-normal, and vice versa

Description

These are two convenience functions that takes the mean and the standard deviation of a normal distribution and returns the corresponding values for the lognormal distibution of the values, and vice versa.

Usage

normal2Lognormal(mean = NULL, sd = NULL)

logNormal2normal(mean = NULL, sd = NULL)

Arguments

mean

Numerical. Mean (or meanlog) parameter.

sd

Numerical. Standard deviation (or scale) parameter.

Value

normal2Lognormal: A list of "mean" and "sd", giving the mean and scale parameter of the lognormal distribution, suited to be used later in e.g. gamlss.dist,
logNormal2normal: A list of mean and standard deviation of a the corresponding normal distribution.

Author(s)

Jens Åström, Bård Pedersen

Examples

logNormPar <- normal2Lognormal(mean = 100, sd = 10)
logNormal2normal(logNormPar[[1]], logNormPar[[2]])


NINAnor/NIcalc documentation built on Oct. 26, 2023, 9:37 a.m.