Description Usage Arguments Value Examples
Generates a random sample from a semi-continuous distribution. Tested for truncated normal (truncnorm), log-normal (lnorm), and gamma distributions are supported for the continuous part of the distribution.
1 2 |
n |
Number of random variables to generate |
pzero |
Point mass at 0 |
cts.density |
Name of a continuous density with support on the positive real line. Supported values: truncnorm (default), lnorm, and gamma |
cts.param |
A list containing the parameters for cts.density (default: list(a=0, b=Inf, mean = 0, sd=1) for mean, standard deviation of truncated normal). For log-normal, it should be an array containing meanlog, and sdlog of the distribution. For gamma, an array of shape, and rate values must be supplied. |
An array of semi-continuous random variables.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.