calculateCostValueCS {DMCfun}R Documentation

calculateCostValueCS

Description

Calculate cost value (fit) using chi-square (CS) from correct and incorrect RT data.

Usage

calculateCostValueCS(resTh, resOb)

Arguments

resTh

list containing simulation $sim values (output from dmcSim) for rts_comp, rts_incomp, errs_comp, errs_incomp

resOb

list containing raw observed data (see dmcObservedData with keepRaw = TRUE)

Value

cost value (CS)

Examples

# Example 1:
resTh <- dmcSim()
resOb <- flankerData
resOb <- calculateBinProbabilities(resOb)
cost <- calculateCostValueCS(resTh, resOb)

[Package DMCfun version 2.0.2 Index]