Listing 4.
R code for simulating RT and choice responses from the simple diffusion decision model (DDM).
source(“chartr-HelperFunctions.r”) |
nCoh = 5 |
nmc = 50000 |
model = “DDM” |
fP = paramsandlims(model, nCoh, hypoPars = TRUE) |
currParams = fP$hypoParams |
R= simulateRTs(model, currParams, n=nmc, nds=nCoh) |