Package: eam
Type: Package
Title: Evidence Accumulation Models
Version: 1.2.0
Authors@R: c(
    person(
      "Guangyu", "Zhu",
      email = "guangyu.frank@gmail.com",
      role = c("aut"),
      comment = c(ORCID = "0009-0005-1571-1782")
    ),
    person(
      "Guang", "Yang",
      email = "guang.spike.yang@gmail.com",
      role = c("aut", "cre"),
      comment = c(ORCID = "0009-0005-7675-3249")
    )
  )
LinkingTo: Rcpp
Imports: Rcpp, dplyr, tidyr, arrow, rlang, distributional, stats,
        parallel, codetools, grDevices, graphics, ggplot2, gridExtra,
        data.table, purrr, scales, vctrs, tibble, JuliaConnectoR,
        NeuralEstimators
Suggests: testthat (>= 3.0.0), pbapply, abc
Description: 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>.
License: MIT + file LICENSE
Encoding: UTF-8
Config/testthat/edition: 3
RoxygenNote: 7.3.3
Depends: R (>= 4.1.0)
URL: https://y-guang.github.io/eam/, https://github.com/y-guang/eam
NeedsCompilation: yes
Packaged: 2026-03-29 12:38:38 UTC; spike
Author: Guangyu Zhu [aut] (ORCID: <https://orcid.org/0009-0005-1571-1782>),
  Guang Yang [aut, cre] (ORCID: <https://orcid.org/0009-0005-7675-3249>)
Maintainer: Guang Yang <guang.spike.yang@gmail.com>
Repository: CRAN
Date/Publication: 2026-03-29 13:00:02 UTC
Built: R 4.6.0; x86_64-w64-mingw32; 2026-03-29 23:51:47 UTC; windows
Archs: x64
