missPatterns: missing or zero pattern structure.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/missPatterns.R

Description

Analysis of the missing or the zero patterns structure of a data set.

Usage

1
2
3

Arguments

x

a data frame or matrix.

Details

Here, one pattern defines those observations that have the same structure regarding their missingness or zeros. For all patterns a summary is calculated.

Value

groups

List of the different patterns and the observation numbers for each pattern

cn

the names of the patterns coded as vectors of 0-1's

tabcomb

the pattern structure - all combinations of zeros or missings in the variables

tabcombPlus

the pattern structure - all combinations of zeros or missings in the variables including the size of those combinations/patterns, i.e. the number of observations that belongs to each pattern.

rsum

the number of zeros or missing values in each row of the data set.

rindex

the index of zeros or missing values in each row of the data set

Author(s)

Matthias Templ. The code is based on a previous version from Andreas Alfons and Matthias Templ from package VIM

See Also

aggr

Examples

1
2
3
4
5
data(expenditures)
## set NA's artificial:
expenditures[expenditures < 300] <- NA
## detect the NA structure:
missPatterns(expenditures)

robCompositions documentation built on Jan. 13, 2021, 10:07 p.m.