Skip to content

ream

1.0-12

Density, Distribution, and Sampling Functions for Evidence Accumulation Models

0packages depend
2.1Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Raphael HartmannFirst published 2024-09-108 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 3.6 min · r-devel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
0
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 244 wordsVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
100%

Downloads

2.1K
CRAN downloads in the past year
Rank #21,114 · ~6/day · ~174/mo
Daily download trend is not available in this view yet.
12230 days
54190 days
2.1K1 year
Compare downloads with other packages →
Also on395 r2u33 autocran

Repository

Repository
5Stars
0Forks
0Open issues
0Open PRs
5Releases
67Commits
1Contributors
License GPL-3.0 · 67 commits · Last activity 2026-06-29 · 0% stars, 30d

Stars over time

2024-09-23 · 22026-07-07 · 5

Repository practices

Upstream repositoryBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/raphaelhartmann/ream on 2026-08-23.

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (0)
none
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Package Timeline

8 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 1.0-12Latest
    2026-06-30 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.0-10
    2025-12-19 · diff ↗
  • 1.0-9
    2025-12-18 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0-5
    2024-09-26 · diff ↗
  • 1.0-4
    2024-09-20 · diff ↗
  • 1.0-3
    2024-09-17 · diff ↗
  • 1.0-2
    2024-09-16 · diff ↗
  • unarchivedReturned to CRAN
    2024-09-16
  • archivedRemoved from CRAN
    2024-09-14
    corrupts the R session on macOS And has ASAN reports on Linux
  • 1.0-1
    2024-09-10
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-09-10
Total releases
8 / 2 yrs
License
GPL (>= 2) OSI
Download size
97 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("ream")
Hartmann, R., & Murrow, M. (2026). ream: Density, Distribution, and Sampling Functions for Evidence Accumulation Models (Version 1.0-12) [Computer software]. https://doi.org/10.32614/CRAN.package.ream

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 ream version 1.0-12 [Data set]. HJJB, LLC. Data release v2026-08-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-25, 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