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]
All associated links for this package
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 06 Mar. 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

Today's Hot Picks in Authors and Packages

ngspatial  
Fitting the Centered Autologistic and Sparse Spatial Generalized Linear Mixed Models for Areal Data
Provides tools for analyzing spatial data, especially non- Gaussian areal data. The current version ...
Download / Learn more Package Citations See dependency  
xfun  
Supporting Functions for Packages Maintained by 'Yihui Xie'
Miscellaneous functions commonly used in other packages maintained by 'Yihui Xie'. ...
Download / Learn more Package Citations See dependency  
Directional  
A Collection of Functions for Directional Data Analysis
A collection of functions for directional data (including massive data, with millions of observation ...
Download / Learn more Package Citations See dependency  
testthat  
Unit Testing for R
Software testing is important, but, in part because it is frustrating and boring, many of us avoid i ...
Download / Learn more Package Citations See dependency  
incgraph  
Incremental Graphlet Counting for Network Optimisation
An efficient and incremental approach for calculating the differences in orbit counts when performi ...
Download / Learn more Package Citations See dependency  
r2resize  
In-Text Resize for Images, Tables and Fancy Resize Containers in 'shiny', 'rmarkdown' and 'quarto' Documents
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency  

23,794

R Packages

206,711

Dependencies

64,305

Author Associations

23,781

Publication Badges

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