R/Cpp implementation of the diffusion process model (Diffusion Modelfor Conflict Tasks, DMC) presented in Automatic and controlled stimulusprocessing in conflict tasks: Superimposed diffusion processes and deltafunctions(https://www.sciencedirect.com/science/article/pii/S0010028515000195)
CRAN https://cran.r-project.org/web/packages/DMCfun/index.html
The package is presented in the following paper:
https://www.sciencedirect.com/science/article/pii/S259026012100031X
# install version from CRANinstall.packages("DMCfun")library(DMCfun)# install version from GitHub# install.packages("devtools")devtools::install_github("igmmgi/DMCfun")dmc<-dmcSim(fullData =TRUE)plot(dmc)
dmc$means Comp rtCor sdRtCor perErr rtErr sdRtErr1 comp440.105.0.633479.104.2 incomp459.94.81.38406.95.2dmc<-dmcSim(fullData =TRUE,tau =150)plot(dmc)
dmc$means Comp rtCor sdRtCor perErr rtErr sdRtErr1 comp421.90.40.259504.119.2 incomp484.103.2.37425.82.7params<-list(tau =seq(20,170,10))dmc<-dmcSims(params)plot(dmc,ncol =2,col =c("red","green"))
fit<-dmcFit(flankerData)# flanker data from Ulrich et al. (2015)plot(fit, flankerData)
summary(fit) amp tau drc bnds resMean resSD aaShape spShape sigm rmse119.398.80.59355.8325.28.42.262.8448.91fit<-dmcFit(simonData)# simon data from Ulrich et al. (2015)plot(fit, simonData)
amp tau drc bnds resMean resSD aaShape spShape sigm RMSE116.9147.770.5956.68317.1633.431.683.53410.01fit<-dmcFitDE(flankerData)# flanker data from Ulrich et al. (2015)plot(fit, flankerData)
summary(fit) amp tau drc bnds resMean resSD aaShape spShape sigm RMSE117.26222.190.6457.49328.0628.411.72.1845.79fit<-dmcFitDE(simonData)# simon data from Ulrich et al. (2015)plot(fit, simonData)
amp tau drc bnds resMean resSD aaShape spShape sigm RMSE114.3142.290.5557.54308.6325.982.153.5648.86