calculateCostValueRMSE {DMCfun}R Documentation

calculateCostValueRMSE

Description

Calculate cost value (fit) using root-mean-square error (RMSE) from a combination of RT and error rate.

Usage

calculateCostValueRMSE(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 (RMSE)

Examples

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

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

[Package DMCfun version 2.0.2 Index]