Skip to content

ream

Density, Distribution, and Sampling Functions for Evidence Accumulation Models

v1.0-12 · Jun 30, 2026 · GPL (>= 2)

Description

Calculate the probability density functions (PDFs) for two threshold evidence accumulation models (EAMs). These are defined using the following Stochastic Differential Equation (SDE), dx(t) = v(x(t),t)*dt+D(x(t),t)*dW, where x(t) is the accumulated evidence at time t, v(x(t),t) is the drift rate, D(x(t),t) is the noise scale, and W is the standard Wiener process. The boundary conditions of this process are the upper and lower decision thresholds, represented by b_u(t) and b_l(t), respectively. Upper threshold b_u(t) > 0, while lower threshold b_l(t) < 0. The initial condition of this process x(0) = z where b_l(t) < z < b_u(t). We represent this as the relative start point w = z/(b_u(0)-b_l(0)), defined as a ratio of the initial threshold location. This package generates the PDF using the same approach as the 'python' package it is based upon, 'PyBEAM' by Murrow and Holmes (2023) <doi:10.3758/s13428-023-02162-w>. First, it converts the SDE model into the forwards Fokker-Planck equation dp(x,t)/dt = d(v(x,t)*p(x,t))/dt-0.5*d^2(D(x,t)^2*p(x,t))/dx^2, then solves this equation using the Crank-Nicolson method to determine p(x,t). Finally, it calculates the flux at the decision thresholds, f_i(t) = 0.5*d(D(x,t)^2*p(x,t))/dx evaluated at x = b_i(t), where i is the relevant decision threshold, either upper (i = u) or lower (i = l). The flux at each thresholds f_i(t) is the PDF for each threshold, specifically its PDF. We discuss further details of this approach in this package and 'PyBEAM' publications. Additionally, one can calculate the cumulative distribution functions of and sampling from the EAMs.

Downloads

CRAN

257

Last 30 days

19136th

556

Last 90 days

2.2K

Last year

Trend: +119.7% (30d vs prior 30d)

r2u CRAN

26

Last 30 days

116

Last 90 days

412

Last year

Trend: -35% (30d vs prior 30d)

autoCRAN

12

Last 7 days

24

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Additional Issues

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code intelligence has not been computed for this package yet.

Code

Structure

Lines of code

19,824

Files

85

Compiled share

49.2%

Has compiled src

Yes

Language breakdown

R 6,551 (33%)C/C++/src 9,748 (49.2%)Docs 2,567 (12.9%)Vignettes 958 (4.8%)

API

Exported functions

73

Internal functions

5

Recent export changes

v1.0-9+4 dDDM, dDDM_grid, pDDM +1 more  −7 dCDSTP, dCDSTP_grid, dCSTM_TW_grid 4 more

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

1

C++ standard

C++17

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

8

First release

2024-09-10

Latest release

2026-06-30

Avg cadence

6 days

Cold removal rate

100%

Dep drift

0

LOC over versions

v1.0-1: 15,932 LOCv1.0-2: 15,927 LOCv1.0-3: 15,939 LOCv1.0-4: 15,942 LOCv1.0-5: 15,943 LOCv1.0-9: 19,824 LOCv1.0-10: 19,824 LOCv1.0-12: 19,824 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Version History

9 tracked
updated 1.0-12 ← 1.0-10 diff Jun 30, 2026
new 1.0-10 Mar 10, 2026
updated 1.0-10 ← 1.0-9 diff Dec 18, 2025
updated 1.0-9 ← 1.0-5 diff Dec 17, 2025
updated 1.0-5 ← 1.0-4 diff Sep 25, 2024
updated 1.0-4 ← 1.0-3 diff Sep 19, 2024
updated 1.0-3 ← 1.0-2 diff Sep 16, 2024
updated 1.0-2 ← 1.0-1 diff Sep 15, 2024
new 1.0-1 Sep 9, 2024