View source: R/truncated_distributions.R
| rlnormt | R Documentation |
Generate random claim severities from a lognormal distribution conditional
on the result falling inside the interval (lower, upper).
rlnormt(n, meanlog, sdlog, lower, upper)
n |
Integer. Number of observations to generate. |
meanlog |
Numeric. Mean of the underlying normal distribution. |
sdlog |
Numeric. Standard deviation of the underlying normal distribution. |
lower |
Numeric. Lower truncation bound. |
upper |
Numeric. Upper truncation bound. |
Random values are generated by sampling from a uniform distribution on the
interval [F(lower), F(upper)], where F is the CDF of the
lognormal distribution, and then applying the inverse CDF.
The resulting sample follows the specified conditional distribution; values outside the truncation interval are not generated.
In severity analysis, this can be used for simulation and model checking when the available claims are observed only between a lower reporting threshold and an upper modelling limit. Truncation should not be confused with censoring or capping: the function assumes that values outside the interval are absent rather than recorded at a boundary.
A numeric vector of length n containing random draws from the
truncated lognormal distribution.
Martin Haringa
fit_truncated_severity(), rgammat()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.