Description Usage Arguments Details See Also Examples
rSMSN
Generate random variables with one of the following distributions:
Normal, Student-t, Contaminated Normal, Slash, Skew-Normal, Skew-t and Skew-Slash.
1 |
n |
Number of observations to be generated. |
mu |
Location parameter. |
sigma2 |
Scale parameter. |
lambda |
Shape parameter (control skewness). Only must be provided for Skew-Normal, Skew-t and Skew-Slash distributions. |
nu |
Degree of freedom. Must not be provided for Normal and Skew-Normal distribution. Must be a vector of length 2 for Contaminated-Normal distribution. |
dist |
Distribution to be used: "Normal" for Normal model, "T" for Student-t model, "Slash" for slash model, "NormalC" for contaminated Normal model, "SN" for Skew-Normal model, "ST" for Skew-t model and "SSL" for Skew-Slash model. |
If Y follows a Contaminated Normal model, than a observation y comes from a normal distribution with mean "mu"" and variance "sigma2/rho" with probabilty "nu" and comes from a normal distribution with mean "mu" and variace "sigma2" with probability "1-nu".
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.