Learn R Programming

MGMM (version 1.0.1.3)

PartitionData: Partition Data by Missingness Pattern

Description

Splits the input data into complete cases, incomplete cases (at least one missing value), and empty cases (all values missing). Useful for custom workflows or inspecting missingness patterns.

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

A numeric matrix or data frame (coerced to matrix).