artifNA {wNNSel} | R Documentation |
This function artificially introduces missing values in a data matrix under missing completely at random (MCAR) mechanism.
artifNA(x, miss.prop = 0.1)
x |
a matrix, in which missing values are to be created. |
miss.prop |
proportion of missing values |
a matrix with missing values
set.seed(3)
x = matrix(rnorm(100),10,10)
## create 10% missing values in x
artifNA(x, 0.10)