md.pairs(data)
NA
.rr
, rm
, mr
and
mm
. Each component is square numerical matrix containing the number
observations within four missing data pattern.
mice
:
Multivariate Imputation by Chained Equations in R
. Journal of
Statistical Software, 45(3), 1-67.
http://www.jstatsoft.org/v45/i03/
pat <- md.pairs(nhanes)
pat
# show that these four matrices decompose the total sample size
# for each pair
pat$rr + pat$rm + pat$mr + pat$mm
# percentage of usable cases to impute row variable from column variable
round(100*pat$mr/(pat$mr+pat$mm))
Run the code above in your browser using DataLab