conta_normal {robustcov} | R Documentation |
Sample contaminated normal
Description
This function samples normal distribution with normal contamination
Usage
conta_normal(
n,
Omega,
byrow = FALSE,
cont_rate = 0.05,
mu = 10,
sd = sqrt(0.2)
)
Arguments
n |
samplesize |
Omega |
precision matrix of the normal |
byrow |
whether the contamination happened by row? FALSE stand for cellwise contamination |
cont_rate |
how many cells/rows are contaminated? |
mu |
mean of the contamination |
sd |
standard deviation of the contamination |
Value
a matrix of contaminated (multivariate) normal distributed data, row as sample
[Package robustcov version 0.1 Index]