This returns only the cue validities, without reversing when a cue points in the wrong direction-- e.g. education is negatively associated with number of felonies, so we should use LESS education as a predictor. Use cueValidityComplete for help with that.
cueValidityAppliedToColumns(
data,
criterion_col,
cols_to_fit,
replaceNanWith = 0.5
)
The matrix or data.frame whose columns are treated as cues.
The index of the column used as criterion.
A vector of indexes of the columns to calculate cue validity for.
The value to return as cue validity in case it cannot be calculated.
A list where $cue_validities has a vector of validities for each of the columns in cols_to_fit.
Wikipedia's entry on https://en.wikipedia.org/wiki/Cue_validity
cueValidityComplete
for more complete output.