Preprocessing Pipeline for Psychometric Hypergraph Analysis
Source:R/preprocess.R
data_preprocess_pipeline.RdA comprehensive pipeline that handles missing data, optionally applies rank normalization, and computes the correlation matrix for psychological scale data. Designed to prepare data for hypergraph analysis.
Arguments
- data
Raw data frame or matrix of psychometric data. Numeric columns are retained.
- cor_method
Correlation method: pearson, polychoric
- handle_na
"impute" or "omit"
- impute_fun
Imputation function
- transform
Data transformation: "auto", "rank", or "none". "auto" applies rank normalization for Pearson correlation and no transformation for polychoric correlation. Polychoric correlation requires "auto" or "none".