Learn R Programming

lognGPD (version 0.1.0)

rlognPareto: Simulation of the lognormal-Pareto spliced distribution

Description

This function simulates the continuous and differentiable version of the truncated lognormal-Pareto spliced distribution proposed by Scollnik (2007).

Usage

rlognPareto(n, sigma, xmin, alphapar)

Value

ysim (nreps x 1) vector: nreps random numbers from the truncated lognormal-Pareto spliced distribution.

Arguments

n

positive integer: number of observations sampled.

sigma

positive real: log-standard deviation of the truncated lognormal distribution.

xmin

positive real: scale parameter of the Pareto distribution.

alphapar

positive real: shape parameterof the Pareto distribution.

Details

See Scollnik (2007) for details.

References

scoll07lognGPD

Examples

Run this code
ysim <- rlognPareto(100,1,5,2)

Run the code above in your browser using DataLab