calculateCostValueSPE {DMCfun}R Documentation

calculateCostValueSPE

Description

Calculate cost value (fit) using squared percentage errror (SPE) from combination of RT and error rate.

Usage

calculateCostValueSPE(resTh, resOb)

Arguments

resTh

list containing caf values for comp/incomp conditions (nbins * 4 columns) and delta values for comp/incomp conditions (nbins * 5 columns). See output from dmcSim (.$caf).

resOb

list containing caf values for comp/incomp conditions (n * 4 columns) and delta values for comp/incomp conditions (nbins * 5 columns). See output from dmcSim (.$delta).

Value

cost value (SPE)

Examples

# Example 1:
resTh <- dmcSim()
resOb <- dmcSim()
cost <- calculateCostValueSPE(resTh, resOb)

# Example 2:
resTh <- dmcSim()
resOb <- dmcSim(tau = 150)
cost <- calculateCostValueSPE(resTh, resOb)

[Package DMCfun version 2.0.2 Index]