powered by
This function simulates random numbers for a mixture of a lognormal and a Pareto r.v.
rLnormParMix(n, p, mu, sigma, xmin, alpha)
n iid random numbers from the lognormal-Pareto distribution.
positive integer: number of simulated random numbers.
scalar, 0 < p < 1: mixing weight.
scalar: expected value of the lognormal distribution on the log scale.
positive scalar: standard deviation of the lognormal distribution on the log scale.
positive scalar: threshold.
non-negative scalar: Pareto shape parameter.
ySim <- rLnormParMix(100,.5,0,1,4,1.5)
Run the code above in your browser using DataLab