Skip to content

Fast Implementation of the Diffusion Decision Model

0packages depend
3.6Kdownloads / year
81.6%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.0-2

New Features

  • added function ddm() which permits formula-based fitting of the DDM using the analytic gradient.

Other Changes

  • the order of the arguments v and a to functions dfddm(), pfddm(), and the PDF derivatives d*_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

CRAN checks
13OK
Slowest check: 7.5 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 1.0-2
READMEYes · 876 wordsVignettesYes · 5 · dynamicNEWSYes · 100% structured · mentions 1.0-2Citation fileNoWebsitenot declared in DESCRIPTION
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

3.6K
CRAN downloads in the past year
Rank #8,537 · ~10/day · ~297/mo
Daily download trend is not available in this view yet.
46030 days
1.1K90 days
3.6K1 year
Compare downloads with other packages →
Also on383 r2u4 autocran

Repository

19Stars
8Forks
1Open issues
0Open PRs
4Releases
436Commits
2Commit identities
436 commits · Last activity 2024-08-01 · 0% stars, 30d
Responsiveness
How these are sampled
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

2025-07-05 · 172026-08-08 · 19
PracticesBeta

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.

Continuous integration (3)
GitHub ActionsR CMD check workflowTravis CI (config file)

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
19 external dependencies (excludes base and recommended)

Installing fddm adds 3 packages (2 with compiled code, 3.5 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppEigen 1.7 MB, Formula 46 KB.

Depends (1)
R >= 3.5.0
Imports (4)
RcppstatsmethodsFormula
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (3)
Contributor, Maintainer since 0.1-1 (2020)
Contributor · added in 1.0-1
methods partially taken from betareg
Releases (11)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0-2Latest
    record
    2024-07-02 · current release · diff ↗
  • 1.0-1
    record
    2024-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
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.5-2
    record
    2022-09-09 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.5-1
    record
    2022-03-15 · diff ↗
  • 0.4-1
    record
    2021-12-13 · diff ↗
  • 0.4-0
    record
    2021-08-06 · diff ↗ ·
    added 1 export
    pfddm
  • R
    R 4.1.0 released · 2021-05-18
  • 0.3-3
    record
    2021-04-06 · diff ↗
  • 0.3-1
    record
    2021-03-22 · diff ↗
  • 0.2-2
    record
    2020-11-04 · diff ↗
  • 0.2-1
    record
    2020-10-14 · diff ↗
Show 2 earlier eventsHide 2 earlier events
  • 0.1-1
    record
    2020-07-10
  • R
    R 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")
Singmann, H., Foster, K. B., & Zeileis, A. (2024). fddm: Fast Implementation of the Diffusion Decision Model (Version 1.0-2) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for fddm version 1.0-2 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy