powered by
This function simulates a lognormal-GPD mixture.
rlognGPD(n, p, mu, sigma, xi, beta)
ysim (n x 1) vector: n random numbers from the lognormal - generalized Pareto mixture.
positive integer: number of observations sampled.
real, 0<p<1: prior probability
real: log-mean of the lognormal distribution.
positive real: log-standard deviation of the lognormal distribution.
real: shape parameter of the generalized Pareto distribution.
positive real: scale parameter of the generalized Pareto distribution.
ysim <- rlognGPD(100,.9,0,1,0.5,2)
Run the code above in your browser using DataLab