Learn R Programming

MGMM (version 1.0.1.1)

PartitionData: Partition Data by Missingness Pattern

Description

Returns a list with the input data split in separate matrices for complete cases, incomplete cases, and empty cases.

Usage

PartitionData(data)

Value

List containing:

  • The original row and column names: `orig_row_names`, `orig_col_names`.

  • The original row and column numbers: `n_row` and `n_col`.

  • The complete cases `data_comp`.

  • The incomplete cases `data_incomp`.

  • The empty cases `data_empty`.

  • Counts of complete `n0`, incomplete `n1`, and empty `n2` cases.

  • Initial order of the observations `init_order`.

Arguments

data

Data.frame.