Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

prodNA

Introduce Missing Values Completely at Random


Description

'prodNA' artificially introduces missing values. Entries in the given dataframe are deleted completely at random up to the specified amount.

Usage

prodNA(x, noNA = 0.1)

Arguments

x

dataframe subjected to missing value introduction.

noNA

proportion of missing values w.r.t. the number of entries of 'x'.

Value

dataframe with missing values.

Author(s)

Daniel J. Stekhoven, <stekhoven@stat.math.ethz.ch>

See Also

Examples

data(iris)
## Introduce 5% of missing values to the iris data set
iris.mis <- prodNA(iris, 0.05)
summary(iris.mis)

missForest

Nonparametric Missing Value Imputation using Random Forest

v1.4
GPL (>= 2)
Authors
Daniel J. Stekhoven <stekhoven@stat.math.ethz.ch>
Initial release
2013-12-31

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.