rLnormParMix | R Documentation |
This function simulates random numbers for a mixture of a lognormal and a Pareto r.v.
rLnormParMix(n, pi, mu, sigma, xmin, alpha)
n |
positive integer: number of simulated random numbers. |
pi |
scalar, 0 < pi < 1: mixing weight. |
mu |
scalar: expected value of the lognormal distribution on the log scale. |
sigma |
positive scalar: standard deviation of the lognormal distribution on the log scale. |
xmin |
positive scalar: threshold. |
alpha |
non-negative scalar: Pareto shape parameter. |
n iid random numbers from the lognormal-Pareto distribution.
ySim <- rLnormParMix(100,.5,0,1,4,1.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.