Package: EMC2 2.0.2
EMC2: Bayesian Hierarchical Analysis of Cognitive Models of Choice
Fit Bayesian (hierarchical) cognitive models using a linear modeling language interface using particle metropolis Markov chain Monte Carlo sampling with Gibbs steps. The diffusion decision model (DDM), linear ballistic accumulator model (LBA), racing diffusion model (RDM), and the lognormal race model (LNR) are supported. Additionally, users can specify their own likelihood function and/or choose for non-hierarchical estimation, as well as for a diagonal, blocked or full multivariate normal group-level distribution to test individual differences. Prior specification is facilitated through methods that visualize the (implied) prior. A wide range of plotting functions assist in assessing model convergence and posterior inference. Models can be easily evaluated using functions that plot posterior predictions or using relative model comparison metrics such as information criteria or Bayes factors. References: Stevenson et al. (2024) <doi:10.31234/osf.io/2e4dq>.
Authors:
EMC2_2.0.2.tar.gz
EMC2_2.0.2.tar.gz(r-4.5-noble)EMC2_2.0.2.tar.gz(r-4.4-noble)
EMC2_2.0.2.tgz(r-4.4-emscripten)EMC2_2.0.2.tgz(r-4.3-emscripten)
EMC2.pdf |EMC2.html✨
EMC2/json (API)
# Install 'EMC2' in R: |
install.packages('EMC2', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
- forstmann - Forstmann et al.'s data
- samples_LNR - An emc object of an LNR model of the Forstmann dataset using the first three subjects
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated 7 days agofrom:ca5ca16786. Checks:OK: 2. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Sep 11 2024 |
R-4.5-linux-x86_64 | OK | Sep 11 2024 |
Exports:chain_ncheckcomparecompare_subjectcontr.anovacontr.bayescontr.decreasingcontr.increasingcredibleDDMdesigness_summaryfitgd_summaryget_BayesFactorget_dataget_parsget_prior_blockedget_prior_diagget_prior_factorget_prior_SEMget_prior_singleget_prior_standardhypothesisinit_chainsLBALNRmake_datamake_emcmake_random_effectsmapped_parmerge_chainspairs_posteriorparametersplot_defective_densityplot_fitplot_parsplot_priorplot_relationsposterior_summarypriorprofile_plotRDMrecoveryrun_bridge_samplingrun_emcsampled_p_vector
Dependencies:abindBrobdingnagclicodacolorspacecorpcorcorrplotevdexpmfansigenericsglueGPArotationgsllatticelifecyclelpSolvemagicmagrittrMASSMatrixmatrixcalcmnormtmsmmvtnormnlmepillarpkgconfigpsychRcpprlangrtdistssurvivaltibbleutf8vctrs