getMinR2RRW | R Documentation |
This function calculates (1 - r-square) for a set of predicted values (predY) relative to actual empirical values (y).
getMinR2RRW(
simPhit,
dataPhit,
simRT,
dataRT,
equalizeRTandPhit = FALSE,
standardize = T
)
simPhit |
a vector of numbers that is the fitted data generated from the model for the probability correct. |
dataPhit |
a vector of numbers that were fitted by a model to produce simRT. |
simRT |
a vector of numbers that is the fitted data generated from the model for the RT. |
equalizeRTandPhit |
A boolean that specifies whether the influence of the pHit should be equal to that of rt. Influence is a function of the number of observations. RT has more observations than pHit because it has both correct RTs and incorrect RTs. If this is set to TRUE, then the r square of the pHit and RT is calculated by equalizing the influence of the number of observations. If it is set to FALSE, then the output is calculated as usual. DEFAULT = FALSE. |
standardize |
a boolean that specifies whether to standardize the DVs before running. Unstandardized data may give biased results when equalizeRTandPhit = T. DEFAULT = T. |
(1-r2) this is used as the value to be minimized by an optimization program
getMinR2RRW (fittedPhit, pHit, fittedRT, rt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.