rlnorm2 {bSims}R Documentation

Reparametrized lognormal distribution

Description

A lognormal distribution parametrized as mean (ybar) and SDlog.

Usage

rlnorm2(n, mean = exp(0.5), sdlog = 1)

Arguments

n

number of random numbers desired.

mean

mean.

sdlog

log scale standard deviation.

Details

Log scale mean is log(mean) - sdlog^2/2.

Value

Vector of random numbers.

Author(s)

Peter Solymos

See Also

link{rlnorm}

Examples

summary(rlnorm2(10^6, 1.3, 0.5)) # mean ~ 1.3
exp(log(1.3) - 0.5^2/2) # ~ median

[Package bSims version 0.2-1 Index]