Package: DMCfun 4.0.3

DMCfun: Diffusion Model of Conflict (DMC) in Reaction Time Tasks

DMC model simulation detailed in Ulrich, R., Schroeter, H., Leuthold, H., & Birngruber, T. (2015). Automatic and controlled stimulus processing in conflict tasks: Superimposed diffusion processes and delta functions. Cognitive Psychology, 78, 148-174. Ulrich et al. (2015) <doi:10.1016/j.cogpsych.2015.02.005>. Decision processes within choice reaction-time (CRT) tasks are often modelled using evidence accumulation models (EAMs), a variation of which is the Diffusion Decision Model (DDM, for a review, see Ratcliff & McKoon, 2008). Ulrich et al. (2015) introduced a Diffusion Model for Conflict tasks (DMC). The DMC model combines common features from within standard diffusion models with the addition of superimposed controlled and automatic activation. The DMC model is used to explain distributional reaction time (and error rate) patterns in common behavioural conflict-like tasks (e.g., Flanker task, Simon task). This R-package implements the DMC model and provides functionality to fit the model to observed data. Further details are provided in the following paper: Mackenzie, I.G., & Dudschig, C. (2021). DMCfun: An R package for fitting Diffusion Model of Conflict (DMC) to reaction time and error rate data. Methods in Psychology, 100074. <doi:10.1016/j.metip.2021.100074>.

Authors:Ian G. Mackenzie [cre, aut], Carolin Dudschig [aut]

DMCfun_4.0.3.tar.gz
DMCfun_4.0.3.zip(r-4.5)DMCfun_4.0.3.zip(r-4.4)DMCfun_4.0.3.zip(r-4.3)
DMCfun_4.0.3.tgz(r-4.4-x86_64)DMCfun_4.0.3.tgz(r-4.4-arm64)DMCfun_4.0.3.tgz(r-4.3-x86_64)DMCfun_4.0.3.tgz(r-4.3-arm64)
DMCfun_4.0.3.tar.gz(r-4.5-noble)DMCfun_4.0.3.tar.gz(r-4.4-noble)
DMCfun_4.0.3.tgz(r-4.4-emscripten)DMCfun_4.0.3.tgz(r-4.3-emscripten)
DMCfun.pdf |DMCfun.html
DMCfun/json (API)

# Install 'DMCfun' in R:
install.packages('DMCfun', repos = c('https://igmmgi.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/igmmgi/dmcfun/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • flankerData - A summarised dataset: This is the flanker task data from Ulrich et al.
  • simonData - A summarised dataset: This is the simon task data from Ulrich et al.

On CRAN:

5.13 score 17 stars 5 scripts 335 downloads 21 exports 25 dependencies

Last updated 4 days agofrom:8d13797b4b. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 18 2024
R-4.5-win-x86_64OKNov 18 2024
R-4.5-linux-x86_64OKNov 18 2024
R-4.4-win-x86_64OKNov 18 2024
R-4.4-mac-x86_64OKNov 18 2024
R-4.4-mac-aarch64OKNov 18 2024
R-4.3-win-x86_64OKNov 18 2024
R-4.3-mac-x86_64OKNov 18 2024
R-4.3-mac-aarch64OKNov 18 2024

Exports:addDataDFaddErrorBarscalculateBinProbabilitiescalculateCAFcalculateCostValueCScalculateCostValueGScalculateCostValueRMSEcalculateCostValueSPEcalculateDeltacreateDFdmcCombineObservedDatadmcFitdmcFitDEdmcFitSubjectdmcFitSubjectDEdmcObservedDatadmcSimdmcSimAppdmcSimserrDistrtDist

Dependencies:BHclicpp11DEoptimdplyrfansigenericsgluelifecyclemagrittrpbapplypillarpkgconfigpurrrR6Rcpprlangstringistringrtibbletidyrtidyselectutf8vctrswithr

Readme and manuals

Help Manual

Help pageTopics
addDataDFaddDataDF
addErrorBars: Add errorbars to plot.addErrorBars
calculateBinProbabilitiescalculateBinProbabilities
calculateCAFcalculateCAF
calculateCostValueCScalculateCostValueCS
calculateCostValueGScalculateCostValueGS
calculateCostValueRMSEcalculateCostValueRMSE
calculateCostValueSPEcalculateCostValueSPE
calculateDeltacalculateDelta
createDFcreateDF
dmcCombineObservedDatadmcCombineObservedData
dmcCppRdmcCppR
dmcFitdmcFit
dmcFitDEdmcFitDE
dmcFitSubjectdmcFitSubject
dmcFitSubjectDEdmcFitSubjectDE
dmcObservedDatadmcObservedData
dmcSimdmcSim
dmcSimAppdmcSimApp
dmcSims: Run multiple dmc simulationsdmcSims
errDisterrDist
A summarised dataset: This is the flanker task data from Ulrich et al. (2015)flankerData
mean.dmcfitmean.dmcfit_subject
plot.dmcfit: Plot observed + fitted dataplot.dmcfit
plot.dmcfit_subject: Plot observed + fitted dataplot.dmcfit_subject
plot.dmcfits: Plot observed + fitted dataplot.dmcfits
plot.dmcfits_subject: Plot observed + fitted dataplot.dmcfits_subject
plot.dmclist: Plot delta plots from multiple dmc simulations.plot.dmclist
plot.dmcob: Plot observed dataplot.dmcob
plot.dmcobs: Plot combined observed dataplot.dmcobs
plot.dmcsim: Plot dmc simulationplot.dmcsim
rtDistrtDist
A summarised dataset: This is the simon task data from Ulrich et al. (2015)simonData
summary.dmcfit: dmc fit aggregate summarysummary.dmcfit
summary.dmcfit_subject: dmcfit individual subjectsummary.dmcfit_subject
summary.dmcfits: dmc fit aggregate summary (2+ data sets)summary.dmcfits
summary.dmcfits_subject: dmc fit aggregate summarysummary.dmcfits_subject
summary.dmcsim: dmc simulation summarysummary.dmcsim