Package: TreeBUGS 1.5.0

Daniel W. Heck

TreeBUGS: Hierarchical Multinomial Processing Tree Modeling

User-friendly analysis of hierarchical multinomial processing tree (MPT) models that are often used in cognitive psychology. Implements the latent-trait MPT approach (Klauer, 2010) <doi:10.1007/s11336-009-9141-0> and the beta-MPT approach (Smith & Batchelder, 2010) <doi:10.1016/j.jmp.2009.06.007> to model heterogeneity of participants. MPT models are conveniently specified by an .eqn-file as used by other MPT software and data are provided by a .csv-file or directly in R. Models are either fitted by calling JAGS or by an MPT-tailored Gibbs sampler in C++ (only for nonhierarchical and beta MPT models). Provides tests of heterogeneity and MPT-tailored summaries and plotting functions. A detailed documentation is available in Heck, Arnold, & Arnold (2018) <doi:10.3758/s13428-017-0869-7> and a tutorial on MPT modeling can be found in Schmidt, Erdfelder, & Heck (2022) <doi:10.31234/osf.io/gh8md>.

Authors:Daniel W. Heck [aut, cre], Nina R. Arnold [aut, dtc], Denis Arnold [aut], Alexander Ly [ctb], Marius Barth [ctb]

TreeBUGS_1.5.0.tar.gz
TreeBUGS_1.5.0.tar.gz(r-4.5-noble)TreeBUGS_1.5.0.tar.gz(r-4.4-noble)
TreeBUGS_1.5.0.tgz(r-4.4-emscripten)TreeBUGS_1.5.0.tgz(r-4.3-emscripten)
TreeBUGS.pdf |TreeBUGS.html
TreeBUGS/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/danheck/treebugs/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • jags– Just Another Gibbs Sampler for Bayesian MCMC
Datasets:
  • arnold2013 - Data of a Source-Monitoring Experiment

4.16 score 1 packages 53 scripts 498 downloads 3 mentions 34 exports 12 dependencies

Last updated 2 years agofrom:ca8b07a737. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 05 2024
R-4.5-linux-x86_64OKNov 05 2024

Exports:BayesFactorMPTBayesFactorSlopebetaMPTbetaMPTcppbetweenSubjectMPTcorrelationPosteriorextendMPTgenBetaMPTgenMPTgenTraitMPTgetGroupMeansgetParamgetSamplesmarginalMPTplotDistributionplotFitplotFreqplotParamplotPriorplotPriorPostposteriorPredictivePPPpriorPredictiveprobitInversereadEQNsimpleMPTsummarizeMCMCsummarizeMPTtestHetChitestHetPermtraitMPTtransformedParametersWAICwithinSubjectEQN

Dependencies:codacontfracdeSolveelliptichypergeolatticelogsplineMASSRcppRcppArmadillorjagsrunjags

Heck, Arnold, & Arnold (2018): TreeBUGS paper (Behavior Research Methods)

Rendered fromHeck_2018_BRM.pdf.asisusingR.rsp::asison Nov 05 2024.

Last update: 2018-12-18
Started: 2018-12-18

TreeBUGS: Advanced MPT Modeling

Rendered fromTreeBUGS_2_extended.Rmdusingknitr::rmarkdownon Nov 05 2024.

Last update: 2023-05-21
Started: 2016-09-02

TreeBUGS: Introduction to Hierarchical MPT Modeling

Rendered fromTreeBUGS_1_intro.Rmdusingknitr::rmarkdownon Nov 05 2024.

Last update: 2023-05-21
Started: 2016-09-02

Readme and manuals

Help Manual

Help pageTopics
TreeBUGS: Hierarchical Multinomial Processing Tree ModelingTreeBUGS-package TreeBUGS
Data of a Source-Monitoring Experimentarnold2013
Bayes Factors for Simple (Nonhierarchical) MPT ModelsBayesFactorMPT
Bayes Factor for Slope Parameters in Latent-Trait MPTBayesFactorSlope
Fit a Hierarchical Beta-MPT ModelbetaMPT
C++ Sampler for Hierarchical Beta-MPT ModelbetaMPTcpp
Between-Subject Comparison of ParametersbetweenSubjectMPT
Posterior Distribution for CorrelationscorrelationPosterior
Extend MCMC Sampling for MPT ModelextendMPT
Generate Data for Beta MPT ModelsgenBetaMPT
Generate MPT FrequenciesgenMPT
Generate Data for Latent-Trait MPT ModelsgenTraitMPT
Get Mean Parameters per GroupgetGroupMeans
Get Parameter Posterior StatisticsgetParam
Get Posterior Samples from Fitted MPT ModelgetSamples
Marginal Likelihood for Simple MPTmarginalMPT
Plot Convergence for Hierarchical MPT Modelsplot.betaMPT plot.simpleMPT plot.traitMPT
Plot Distribution of Individual EstimatesplotDistribution
Plot Posterior Predictive Mean FrequenciesplotFit
Plot Raw FrequenciesplotFreq
Plot Parameter EstimatesplotParam
Plot Prior DistributionsplotPrior
Plot Prior vs. Posterior DistributionplotPriorPost
Get Posterior Predictive SamplesposteriorPredictive
Compute Posterior Predictive P-ValuesPPP
Prior Predictive SamplespriorPredictive
Probit-Inverse of Group-Level Normal DistributionprobitInverse
Read multiTree filesreadEQN
C++ Sampler for Standard (Nonhierarchical) MPT ModelssimpleMPT
MCMC SummarysummarizeMCMC
Summarize JAGS Output for Hierarchical MPT ModelssummarizeMPT
Chi-Square Test of HeterogeneitytestHetChi
Permutation Test of HeterogeneitytestHetPerm
Fit a Hierarchical Latent-Trait MPT ModeltraitMPT
Get Transformed ParameterstransformedParameters
WAIC: Widely Applicable Information Criterion-.waic print.waic print.waic_difference WAIC
Generate EQN Files for Within-Subject DesignswithinSubjectEQN