Cognitive composite (z-mean or PCA1)
Arguments
- data
Data frame containing questionnaire item columns.
- col_map
Named list with
tasksmapping task IDs to column names (>= 2 tasks required).- na_action
How to handle rows with missing items:
keep,omit, orerror.- missing_prop_max
Maximum allowed proportion of missing items per row before the score is set to
NA.- method
Aggregation method:
z_mean(average of z-scores) orpca1(first PC).- prefix
Prefix for output column names.
- verbose
Logical; if
TRUE, emits informational messages about column resolution and scoring progress viahm_inform().