Learn R Programming

BlockwiseRankTest (version 0.1.0)

Identify_mods: Identify Data Modalities

Description

Detects modalities across the combined data (samples X and Y), rearranges variables/columns by modality, and produces identification structures used downstream for blockwise operations.

Usage

Identify_mods(data, m, n, d)

Value

List with components:

rearr_data

List with rearranged X, Y after grouping features by modality.

modality

Integer. Number of distinct missing-data modalities.

mod_bound

Integer vector. Cumulative boundaries of modalities among the features.

mod_id

Binary matrix (N × modality) indicating, for each observation, whether each modality is observed (1) or missing (0).

Arguments

data

List with components X and Y (numeric matrices).

m

Integer. Number of rows in X.

n

Integer. Number of rows in Y.

d

Integer. Number of features (columns) in X (and Y).