Description Usage Arguments Value Author(s)
Simulate from a contaminated normal distribution. A proportion csd
of random samples are scaled by csd
and randomly shifted to the left or right by cshift
.
1 | rnorm_cont(n, mean = 0, sd = 1, cprop = 0.1, cshift = 3, csd = sd)
|
n |
number of observations |
mean |
mean value |
sd |
standard deviation |
cprop |
proportion of contaminated samples |
cshift |
mean shift of contaminated samples |
csd |
standard deviation of contaminated samples |
vector with n
pseudo random numbers
Florian Klinglmueller
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.