Learn R Programming

TreeBUGS (version 1.5.3)

Hierarchical Multinomial Processing Tree Modeling

Description

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) and the beta-MPT approach (Smith & Batchelder, 2010) 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) and a tutorial on MPT modeling can be found in Schmidt, Erdfelder, & Heck (2023) .

Copy Link

Version

Install

install.packages('TreeBUGS')

Monthly Downloads

761

Version

1.5.3

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Daniel W. Heck

Last Published

September 23rd, 2025

Functions in TreeBUGS (1.5.3)

getGroupMeans

Get Mean Parameters per Group
genTraitMPT

Generate Data for Latent-Trait MPT Models
getSamples

Get Posterior Samples from Fitted MPT Model
plot.betaMPT

Plot Convergence for Hierarchical MPT Models
getParam

Get Parameter Posterior Statistics
extendMPT

Extend MCMC Sampling for MPT Model
plotDistribution

Plot Distribution of Individual Estimates
marginalMPT

Marginal Likelihood for Simple MPT
genMPT

Generate MPT Frequencies
genBetaMPT

Generate Data for Beta MPT Models
probitInverse

Probit-Inverse of Group-Level Normal Distribution
readEQN

Read multiTree files
plotFreq

Plot Raw Frequencies
priorPredictive

Prior Predictive Samples
posteriorPredictive

Get Posterior Predictive Samples
plotParam

Plot Parameter Estimates
plotPriorPost

Plot Prior vs. Posterior Distribution
plotFit

Plot Posterior Predictive Mean Frequencies
simpleMPT

C++ Sampler for Standard (Nonhierarchical) MPT Models
plotPrior

Plot Prior Distributions
transformedParameters

Get Transformed Parameters
summarizeMCMC

MCMC Summary
summarizeMPT

Summarize JAGS Output for Hierarchical MPT Models
withinSubjectEQN

Generate EQN Files for Within-Subject Designs
testHetPerm

Permutation Test of Heterogeneity
testHetChi

Chi-Square Test of Heterogeneity
traitMPT

Fit a Hierarchical Latent-Trait MPT Model
TreeBUGS-package

TreeBUGS: Hierarchical Multinomial Processing Tree Modeling
correlationPosterior

Posterior Distribution for Correlations
betaMPT

Fit a Hierarchical Beta-MPT Model
arnold2013

Data of a Source-Monitoring Experiment
betweenSubjectMPT

Between-Subject Comparison of Parameters
betaMPTcpp

C++ Sampler for Hierarchical Beta-MPT Model
PPP

Compute Posterior Predictive P-Values
BayesFactorMPT

Bayes Factors for Simple (Nonhierarchical) MPT Models
WAIC

WAIC: Widely Applicable Information Criterion
BayesFactorSlope

Bayes Factor for Slope Parameters in Latent-Trait MPT