random contaminated normal deviates
Generate a random sample from a contaminated normal distribution.
rcn(n, eps, sigmac)
proportion of proportion of contamination
standard devation of contaiminated component
With probability (1-eps) a deviates are drawn from a standard normal distribution. With probability eps deviates are drawn from a normal distribution with mean 0 and standard devation sigmac
n x 1 numeric vector containing the random deviates.
John Kloke email@example.com, Joseph McKean
Hogg, R. McKean, J, Craig, A (2013) Introduction to Mathematical Statistics, 7th Ed. Boston: Pearson.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.