Package: eam 1.2.2

eam: Evidence Accumulation Models

Simulation-based evidence accumulation models for analyzing responses and reaction times in single- and multi-response tasks. The package includes simulation engines for five representative models: the Diffusion Decision Model (DDM), Leaky Competing Accumulator (LCA), Linear Ballistic Accumulator (LBA), Racing Diffusion Model (RDM), and Levy Flight Model (LFM), and extends these frameworks to multi-response settings. The package supports user-defined functions for item-level parameterization and the incorporation of covariates, enabling flexible customization and the development of new model variants based on existing architectures. Inference is performed using simulation-based methods, including Approximate Bayesian Computation (ABC) and Amortized Bayesian Inference (ABI), which allow parameter estimation without requiring tractable likelihood functions. In addition to core inference tools, the package provides modules for parameter recovery, posterior predictive checks, and model comparison, facilitating the study of a wide range of cognitive processes in tasks involving perceptual decision making, memory retrieval, and value-based decision making. Key methods implemented in the package are described in Ratcliff (1978) <doi:10.1037/0033-295X.85.2.59>, Usher and McClelland (2001) <doi:10.1037/0033-295X.108.3.550>, Brown and Heathcote (2008) <doi:10.1016/j.cogpsych.2007.12.002>, Tillman, Van Zandt and Logan (2020) <doi:10.3758/s13423-020-01719-6>, Wieschen, Voss and Radev (2020) <doi:10.20982/tqmp.16.2.p120>, Csilléry, François and Blum (2012) <doi:10.1111/j.2041-210X.2011.00179.x>, Beaumont (2019) <doi:10.1146/annurev-statistics-030718-105212>, and Sainsbury-Dale, Zammit-Mangion and Huser (2024) <doi:10.1080/00031305.2023.2249522>.

Authors:Guangyu Zhu [aut], Guang Yang [aut, cre]

eam_1.2.2.tar.gz
eam_1.2.2.zip(r-4.7)eam_1.2.2.zip(r-4.6)eam_1.2.2.zip(r-4.5)
eam_1.2.2.tgz(r-4.6-x86_64)eam_1.2.2.tgz(r-4.6-arm64)eam_1.2.2.tgz(r-4.5-x86_64)eam_1.2.2.tgz(r-4.5-arm64)
eam_1.2.2.tar.gz(r-4.7-arm64)eam_1.2.2.tar.gz(r-4.7-x86_64)eam_1.2.2.tar.gz(r-4.6-arm64)eam_1.2.2.tar.gz(r-4.6-x86_64)
eam_1.2.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
eam/json (API)
NEWS

# Install 'eam' in R:
install.packages('eam', repos = c('https://y-guang.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/y-guang/eam/issues

Pkgdown/docs site:https://y-guang.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

ddmeamevidence-accumulation-modelrdmsimulationcpp

4.61 score 3 stars 9 scripts 527 downloads 28 exports 53 dependencies

Last updated from:49f890fdb4. Checks:11 ERROR, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64ERROR157
linux-devel-x86_64ERROR151
source / vignettesOK209
linux-release-arm64ERROR160
linux-release-x86_64ERROR192
macos-release-arm64ERROR154
macos-release-x86_64ERROR231
macos-oldrel-arm64ERROR126
macos-oldrel-x86_64ERROR485
windows-develERROR133
windows-releaseERROR128
windows-oldrelERROR154
wasm-releaseOK128

Exports:abc_abcabc_cvabc_posterior_bootstrapabc_posterior_predictive_checkabc_postprabc_resampleabi_assessabi_estimateabi_posterior_predictive_checkabi_sample_posteriorabi_trainbuild_abc_inputbuild_abi_inputload_simulation_outputmap_by_conditionnew_simulation_configplot_accuracyplot_cv_pair_correlationplot_cv_recoveryplot_posterior_parametersplot_resample_forestplot_resample_mediansplot_rtrun_simulationsummarise_bysummarise_posterior_parameterssummarise_resample_mediansupdate_config_from_posterior

Dependencies:abcabc.dataarrowassertthatbitbit64clicodetoolscpp11data.tabledistributionaldplyrfarvergenericsggplot2gluegridExtragtableisobandJuliaConnectoRlabelinglatticelifecyclelocfitmagrittrMASSMatrixMatrixModelsNeuralEstimatorsnnetnumDerivpbapplypillarpkgconfigpurrrquantregR6RColorBrewerRcpprlangS7scalesSparseMstringistringrsurvivaltibbletidyrtidyselectutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Add two summarise_by specs together+.eam_summarise_by_spec
Join two eam_summarise_by_tbl objects+.eam_summarise_by_tbl
Approximate Bayesian Computation wrapperabc_abc
Cross-validation for ABC modelabc_cv
Bootstrap resample ABC posterior samplesabc_posterior_bootstrap
ABC posterior predictive checkabc_posterior_predictive_check
ABC model comparison wrapperabc_postpr
ABC with resamplingabc_resample
Assess neural estimator using trained estimatorabi_assess
Estimate parameters using trained neural estimatorabi_estimate
ABI posterior predictive checkabi_posterior_predictive_check
Sample from posterior distribution using trained neural estimatorabi_sample_posterior
Train neural estimator using ABI inputabi_train
Build input for Approximate Bayesian Computation (ABC)build_abc_input
Build input for Amortized Bayesian Inference (ABI)build_abi_input
Rebuild eam_simulation_output from an existing output directoryload_simulation_output
Map a function by condition across simulation output chunksmap_by_condition
Create a new simulation configurationnew_simulation_config
Plot accuracy comparison between posterior and observed dataplot_accuracy
Plot CV parameter pair correlationsplot_cv_pair_correlation plot_cv_pair_correlation.cv4abc
Plot CV parameter recoveryplot_cv_recovery plot_cv_recovery.cv4abc plot_cv_recovery.eam_abi_assess plot_cv_recovery.eam_abi_posterior_samples
Plot parameter posterior distributionsplot_posterior_parameters plot_posterior_parameters.abc
Plot resample forest plotsplot_resample_forest
Plot resample median distributionsplot_resample_medians
Plot reaction time distributionsplot_rt
Print method for eam simulation configurationprint.eam_simulation_config
Run a simulation with specified configurationrun_simulation
Summarise data by groups with optional pivotingsummarise_by
Summarise posterior parameter distributionssummarise_posterior_parameters summarise_posterior_parameters.abc summarise_posterior_parameters.eam_abi_posterior_samples
Summarise resample medianssummarise_resample_medians
Update a simulation config with posterior parameter valuesupdate_config_from_posterior