This function creates a missing data indicator matrix
na.indicator(x, as.na = NULL, check = TRUE)
a matrix or data frame.
a numeric vector indicating user-defined missing values,
i.e. these values are converted to NA
before conducting the analysis.
logical: if TRUE
, argument specification is checked.
Returns a matrix or data frame with
Enders, C. K. (2010). Applied missing data analysis. Guilford Press.
Graham, J. W. (2009). Missing data analysis: Making it work in the real world. Annual Review of Psychology, 60, 549-576. https://doi.org/10.1146/annurev.psych.58.110405.085530
van Buuren, S. (2018). Flexible imputation of missing data (2nd ed.). Chapman & Hall.
as.na
, na.as
, na.auxiliary
, na.coverage
,
na.descript
, na.pattern
, na.prop
, na.test
# NOT RUN {
dat <- data.frame(x = c(1, NA, NA, 6, 3),
y = c(7, NA, 8, 9, NA),
z = c(2, NA, 3, NA, 5))
# Create missing data indicator matrix \eqn{R}
na.indicator(dat)
# }
Run the code above in your browser using DataLab