Compute Regression z-scores
compute_z_score.RdComputes z-scores for a given test index using regression parameters from a normative calculator, along with the patient's raw score and demographic information (age, gender, education).
Arguments
- calc
A data frame or tibble containing regression parameters from the calculator.
- x
A numeric vector of raw performance scores.
- lbl
A character string specifying the test index label (must match an entry in
calc).- AGE
A numeric vector indicating the participant's age (in years).
- GEN
A numeric vector indicating gender (1 = man, 0 = woman).
- EDU
A numeric vector indicating years of education.