print.naBlocks: Print Missingness Pattern

Description Usage Arguments Details Value Examples

View source: R/utils.R

Description

Print the pattern of missingness in the supplied data, as a block matrix. Observed data are represented by 1, missing values by 0.

Usage

1
2
## S3 method for class 'naBlocks'
print(x, ...)

Arguments

x

An naBlocks object.

...

Additional parameters passed to print.

Details

The first row shows the column names. The leftmost column, without column name, shows the number of rows per block and the rightmost column with name # shows the number of observed variables in the block.

Value

A named matrix representing the missingness pattern of the data.

Examples

1
2
3
4
    x <- mvtnorm::rmvt(100, toeplitz(seq(1, 0.1, length.out = 3)), df = 5)
    y <- mice::ampute(x, mech='MCAR')$amp
    res <- classicShapeNA(y)
    print(res$naBlocks)

shapeNA documentation built on March 15, 2021, 5:06 p.m.