getICRRW | R Documentation |
This function calculates AIC or BIC for a set of predicted values (predY) relative to actual empirical values (y).
getICRRW(
simPhit,
dataPhit,
simRT,
dataRT,
numParameters,
equalizeRTandPhit = FALSE,
ICtype = "BIC",
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. |
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. ' |
BIC this is used as the value to be minimized by an optimization program
getICRRW (fittedPhit, pHit, fittedRT, rt, 5, standardize = TRUE, ICtype = "BIC")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.