Learn R Programming

codebook (version 0.9.6)

md_pattern: 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

Run this code
data("bfi", package = 'psych')
md_pattern(bfi)
md_pattern(bfi, omit_complete = FALSE, min_freq = 0.2)

Run the code above in your browser using DataLab