Detects modalities across the combined data (samples X and Y), rearranges variables/columns by modality, and produces identification structures used downstream for blockwise operations.
Identify_mods(data, m, n, d)List with components:
List with rearranged X, Y after grouping features by modality.
Integer. Number of distinct missing-data modalities.
Integer vector. Cumulative boundaries of modalities among the features.
Binary matrix (N × modality) indicating, for each observation, whether each modality is observed (1) or missing (0).
List with components X and Y (numeric matrices).
Integer. Number of rows in X.
Integer. Number of rows in Y.
Integer. Number of features (columns) in X (and Y).