print.naBlocks {shapeNA} | R Documentation |
Print Missingness Pattern
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
## S3 method for class 'naBlocks'
print(x, ...)
Arguments
x |
An |
... |
Additional parameters passed to |
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
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)
[Package shapeNA version 0.0.2 Index]