Fast Implementation of the Diffusion Decision Model
Overview
Provides the probability density function (PDF), cumulative distribution function (CDF), the first-order and second-order partial derivatives of the PDF, and a fitting function for the diffusion decision model (DDM; e.g., Ratcliff & McKoon, 2008, doi:10.1162/neco.2008.12-06-420) with across-trial variability in the drift rate. Because the PDF, its partial derivatives, and the CDF of the DDM both contain an infinite sum, they need to be approximated. 'fddm' implements all published approximations (Navarro & Fuss, 2009, doi:10.1016/j.jmp.2009.02.003; Gondan, Blurton, & Kesselmeier, 2014, doi:10.1016/j.jmp.2014.05.002; Blurton, Kesselmeier, & Gondan, 2017, doi:10.1016/j.jmp.2016.11.003; Hartmann & Klauer, 2021, doi:10.1016/j.jmp.2021.102550) plus new approximations. All approximations are implemented purely in 'C++' providing faster speed than existing packages.
New Features
- added function
ddm()which permits formula-based fitting of the DDM using the analytic gradient.
Other Changes
- the order of the arguments
vandato functionsdfddm(),pfddm(), and the PDF derivativesd*_ddm()were changed. Previously, it was...ddm(..., a, v, ...), and now it is...ddm(..., v, a, ...) - character variables in med_dec transformed to factors.
- updated example vignette by showing how to use the new
ddm()function.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 17
- Examples that run
- 100%16 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 95%
- Return-value docs
- 100%
- Help pages citing references
- 82%
Downloads
Repository
- PRs merged (all time)
- 86%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
5 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/rtdists/fddm on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.0-2Latest
- 1.0-12024-06-26 · diff ↗ ·
added 13 exports
da2_dfddm, da_dfddm, ddm, dsv2_dfddm, dsv_dfddm, dt02_dfddm, dt0_dfddm, dt2_dfddm, dt_dfddm, dv2_dfddm, dv_dfddm, dw2_dfddm, dw_dfddm - RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.5-22022-09-09 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.5-12022-03-15 · diff ↗
- 0.4-12021-12-13 · diff ↗
- 0.4-0
- RR 4.1.0 released · 2021-05-18
- 0.3-32021-04-06 · diff ↗
- 0.3-12021-03-22 · diff ↗
- 0.2-22020-11-04 · diff ↗
- 0.2-12020-10-14 · diff ↗
Show 2 earlier eventsHide 2 earlier events
- 0.1-12020-07-10
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-07-10
- Total releases
- 11 / 6 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 37 KB / 1 file
- Download size
- 1.3 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("fddm")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.