getICRRW: Function that calculates AIC or BIC for the entire RRW...

getICRRWR Documentation

Function that calculates AIC or BIC for the entire RRW dataset

Description

This function calculates AIC or BIC for a set of predicted values (predY) relative to actual empirical values (y).

Usage

getICRRW(
  simPhit,
  dataPhit,
  simRT,
  dataRT,
  numParameters,
  equalizeRTandPhit = FALSE,
  ICtype = "BIC",
  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.

numParameters

The number of free parameters.

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 in the BIC. RT has more observations that pHit because it has both correct RTs and incorrect RTs. If this is set to TRUE, then the rss is standardized by the number of observations. If it is set to FALSE, then the BIC is calculated as usual. DEFAULT = FALSE.

ICtype

A string specifying whether to return the AIC or BIC. Valid inputs are: "AIC" and "BIC". DEFAULT = "BIC"

standardize

a boolean that specifies whether to standardize the DVs before running. Unstandardized data may give biased results when equalizeRTandPhit = T. DEFAULT = T. '

Value

BIC this is used as the value to be minimized by an optimization program

Examples

getICRRW (fittedPhit, pHit, fittedRT, rt, 5, standardize = TRUE, ICtype = "BIC")

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