Learn R Programming

misaem (version 1.0.1)

combinations: combinations

Description

Given all the possible patterns of missingness.

Usage

combinations(p)

Arguments

p

Dimension of covariates.

Value

A matrix containing all the possible missing patterns. Each row indicates a pattern of missingness. "1" means "observed", 0 means "missing".

Examples

Run this code
# NOT RUN {
comb = combinations(5)
# }

Run the code above in your browser using DataLab