combinations {misaem}R Documentation

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

comb = combinations(5)

[Package misaem version 1.0.1 Index]