md_pattern: Missing data patterns

Description Usage Arguments Examples

View source: R/misc.R

Description

Generate missingness patterns using a function borrowed from mice, with options to reduce the complexity of the output.

Usage

1
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

1
2
3
data("bfi", package = 'psych')
md_pattern(bfi)
md_pattern(bfi, omit_complete = FALSE, min_freq = 0.2)

codebook documentation built on July 1, 2020, 10:28 p.m.