Description Usage Arguments Value Examples
Simulates a samples of normally distributed data, each "contaminated" with outliers from a different normal distribution according to a user-specified probability. Similar to rnorm.out, except that the order of arguments is different and the output is formatted as a vector.
1 2 | rnorm.contam(n, mu = 0, sigma = 1, contam.p = 0.01, contam.mu = -5,
contam.sigma = 0)
|
n |
The number of independent observations per sample |
mu |
The expectation of the target distribution. |
sigma |
The standard deviation of the target distribution. |
contam.p |
The probability that each observation is from the non-target distribution. |
contam.mu |
The expectation of the non-target / "contamination" / outlier distribution. |
contam.sigma |
The standard deviation of the outlier distribution. |
A vector of independent random numbers n entries.
1 | rnorm.mix(20, 0, 1, .2, 10, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.