Description Usage Arguments Value References See Also
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.
1 2 3 4 5 6 | cueValidityAppliedToColumns(
data,
criterion_col,
cols_to_fit,
replaceNanWith = 0.5
)
|
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.