Learn R Programming

insurancerating (version 0.7.5)

rlnormt: Generate data from truncated lognormal distribution

Description

Random generation for the truncated log normal distribution whose logarithm has mean equal to meanlog and standard deviation equal to sdlog.

Usage

rlnormt(n, meanlog, sdlog, lower, upper)

Value

The length of the result is determined by n.

Arguments

n

number of observations

meanlog

mean of the distribution on the log scale

sdlog

standard deviation of the distribution on the log scale

lower

numeric. Observations below this threshold are not present in the sample.

upper

numeric. Observations above this threshold are not present in the sample.

Author

Martin Haringa