cueValidityAppliedToColumns {heuristica} | R Documentation |
Calculate the cue validity for the cols_to_fit columns.
Description
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.
Usage
cueValidityAppliedToColumns(
data,
criterion_col,
cols_to_fit,
replaceNanWith = 0.5
)
Arguments
data |
The matrix or data.frame whose columns are treated as cues. |
criterion_col |
The index of the column used as criterion. |
cols_to_fit |
A vector of indexes of the columns to calculate cue validity for. |
replaceNanWith |
The value to return as cue validity in case it cannot be calculated. |
Value
A list where $cue_validities has a vector of validities for each of the columns in cols_to_fit.
References
Wikipedia's entry on https://en.wikipedia.org/wiki/Cue_validity
See Also
cueValidityComplete
for more complete output.
[Package heuristica version 1.0.3 Index]