getMinR2RRW: Function that calculates (1 - r-square) for the entire RRW...

View source: R/getMinR2RRW.r

getMinR2RRWR Documentation

Function that calculates (1 - r-square) for the entire RRW dataset

Description

This function calculates (1 - r-square) for a set of predicted values (predY) relative to actual empirical values (y).

Usage

getMinR2RRW(
  simPhit,
  dataPhit,
  simRT,
  dataRT,
  equalizeRTandPhit = FALSE,
  standardize = T
)

Arguments

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.

Value

(1-r2) this is used as the value to be minimized by an optimization program

Examples

getMinR2RRW (fittedPhit, pHit, fittedRT, rt)

ccpluncw/ccpl_R_RRW documentation built on July 4, 2025, 3:24 p.m.