MCARx: Assign NAs to a vector randomly

Description Usage Arguments Value Note Author(s)

View source: R/missingness.R

Description

Assign NAs to a vector randomly based on a user specified probability

Usage

1
MCARx(x, p)

Arguments

x

a vector of any class that NA values should be supplied to

p

A value from 0 to 1 representing the proportion of x that should be replaced with NAs

Value

x with proportion p of values replaced with NA

Note

Yadda yadda yadda

Author(s)

Jared E. Knowles


jknowles/datasynthR documentation built on May 19, 2019, 11:42 a.m.