Movatterモバイル変換


[0]ホーム

URL:


DMCfun

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

Installation

# install version from CRANinstall.packages("DMCfun")library(DMCfun)# install version from  GitHub# install.packages("devtools")devtools::install_github("igmmgi/DMCfun")

Basic Examples DMCSimulation

dmc<-dmcSim(fullData =TRUE)plot(dmc)
alt text
dmc$means  Comp   rtCor sdRtCor perErr rtErr sdRtErr1 comp440.105.0.633479.104.2 incomp459.94.81.38406.95.2
dmc<-dmcSim(fullData =TRUE,tau =150)plot(dmc)
alt text
dmc$means  Comp   rtCor sdRtCor perErr rtErr sdRtErr1 comp421.90.40.259504.119.2 incomp484.103.2.37425.82.7
params<-list(tau =seq(20,170,10))dmc<-dmcSims(params)plot(dmc,ncol =2,col =c("red","green"))
alt text

BasicExamples DMC Fit: Real data using optimx (Nelder-Mead)

fit<-dmcFit(flankerData)# flanker data from Ulrich et al. (2015)plot(fit, flankerData)
alt text
summary(fit)    amp   tau   drc  bnds resMean resSD aaShape spShape sigm  rmse119.398.80.59355.8325.28.42.262.8448.91
fit<-dmcFit(simonData)# simon data from Ulrich et al. (2015)plot(fit, simonData)
alt text
    amp   tau  drc  bnds resMean resSD aaShape spShape sigm  RMSE116.9147.770.5956.68317.1633.431.683.53410.01

Basic ExamplesDMC Fit: Real data using DEoptim

fit<-dmcFitDE(flankerData)# flanker data from Ulrich et al. (2015)plot(fit, flankerData)
alt text
summary(fit)    amp    tau  drc  bnds resMean resSD aaShape spShape sigm RMSE117.26222.190.6457.49328.0628.411.72.1845.79
fit<-dmcFitDE(simonData)# simon data from Ulrich et al. (2015)plot(fit, simonData)
alt text
    amp   tau  drc  bnds resMean resSD aaShape spShape sigm RMSE114.3142.290.5557.54308.6325.982.153.5648.86

[8]ページ先頭

©2009-2025 Movatter.jp