Other packages > Find by keyword >

ream  

Density, Distribution, and Sampling Functions for Evidence Accumulation Models
View on CRAN: Click here


Download and install ream package within the R console
Install from CRAN:
install.packages("ream")

Install from Github:
library("remotes")
install_github("cran/ream")

Install by package version:
library("remotes")
install_version("ream", "1.0-5")



Attach the package and use:
library("ream")
Maintained by
Raphael Hartmann
[Scholar Profile | Author Map]
First Published: 2024-09-10
Latest Update: 2024-09-20
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.
How to cite:
Raphael Hartmann (2024). ream: Density, Distribution, and Sampling Functions for Evidence Accumulation Models. R package version 1.0-5, https://cran.r-project.org/web/packages/ream. Accessed 17 Feb. 2025.
Previous versions and publish date:
1.0-1 (2024-09-10 11:50), 1.0-2 (2024-09-16 13:50), 1.0-3 (2024-09-17 11:30), 1.0-4 (2024-09-20 11:20)
Other packages that cited ream R package
View ream citation profile
Other R packages that ream depends, imports, suggests or enhances
Complete documentation for ream
Functions, R codes and Examples using the ream R package
Full ream package functions and examples
Downloads during the last 30 days
01/1801/1901/2001/2101/2201/2301/2401/2501/2601/2701/2801/2901/3001/3102/0102/0202/0302/0402/0502/0602/0702/0802/0902/1002/1102/1202/1302/1402/1502/16Downloads for ream051015202530TrendBars
Get rewarded with contribution points by helping add
Reviews / comments / questions /suggestions ↴↴↴

Today's Hot Picks in Authors and Packages

vrtest  
Variance Ratio Tests and Other Tests for Martingale Difference Hypothesis
Acollection of statistical tests for martingale difference hypothesis, including automatic portmante ...
Download / Learn more Package Citations See dependency  
officedown  
Enhanced 'R Markdown' Format for 'Word' and 'PowerPoint'
Allows production of 'Microsoft' corporate documents from 'R Markdown' by reusing formatting define ...
Download / Learn more Package Citations See dependency  
mcmcse  
Monte Carlo Standard Errors for MCMC
Provides tools for computing Monte Carlo standard errors (MCSE) in Markov chain Monte Carlo (MCMC) ...
Download / Learn more Package Citations See dependency  
RecordTest  
Inference Tools in Time Series Based on Record Statistics
Statistical tools based on the probabilistic properties of the record occurrence in a sequence of i ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  

23,712

R Packages

205,795

Dependencies

64,332

Author Associations

23,631

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA