cueValidityAppliedToColumns: Calculate the cue validity for the cols_to_fit columns.

Description Usage Arguments Value References See Also

View source: R/cue_validity.R

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

1
2
3
4
5
6
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.


heuristica documentation built on Sept. 8, 2021, 9:08 a.m.