cueValidity counts only correct and incorrect inferences,
ignoring cases where a cue does not discriminate. Cue accuracy gives those
cases a weight of 0.5, the expected accuracy of guessing.
It is calculated as
(correct + 0.5 * guesses) / (correct + incorrect + guesses).
cueAccuracy(criterion, cue, replaceNanWith = 0.5)
A vector of values to be predicted.
A vector of values to predict with. Should have the same length as the criterion.
The value to return as cue validity in case it cannot be calculated, e.g. no variance in the values.
The cue accuracy, a value in the range [0,1].
cueValidity for an alternate measure used in Take The Best.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.