artifNA {wNNSel}R Documentation

Introduce MCAR Missing Values in a matrix

Description

This function artificially introduces missing values in a data matrix under missing completely at random (MCAR) mechanism.

Usage

artifNA(x, miss.prop = 0.1)

Arguments

x

a matrix, in which missing values are to be created.

miss.prop

proportion of missing values

Value

a matrix with missing values

Examples

 set.seed(3)
 x = matrix(rnorm(100),10,10)
 ## create 10% missing values in x
 artifNA(x, 0.10)

[Package wNNSel version 0.1 Index]