md_pattern {codebook} | R Documentation |
Missing data patterns
Description
Generate missingness patterns using a function borrowed from mice, with options to reduce the complexity of the output.
Usage
md_pattern(data, omit_complete = TRUE, min_freq = 0.01)
Arguments
data |
the dataset |
omit_complete |
defaults to TRUE, omitting variables without missing values |
min_freq |
minimum number of rows to have this missingness pattern |
Examples
data("bfi", package = 'psych')
md_pattern(bfi)
md_pattern(bfi, omit_complete = FALSE, min_freq = 0.2)
[Package codebook version 0.9.2 Index]