Learn R Programming

TreeBUGS (version 1.5.0)

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 (2022) .

Copy Link

Version

Install

install.packages('TreeBUGS')

Monthly Downloads

330

Version

1.5.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Daniel W. Heck

Last Published

May 21st, 2023

Functions in TreeBUGS (1.5.0)

arnold2013

Data of a Source-Monitoring Experiment
BayesFactorMPT

Bayes Factors for Simple (Nonhierarchical) MPT Models
betaMPT

Fit a Hierarchical Beta-MPT Model
betaMPTcpp

C++ Sampler for Hierarchical Beta-MPT Model
correlationPosterior

Posterior Distribution for Correlations
BayesFactorSlope

Bayes Factor for Slope Parameters in Latent-Trait MPT
getGroupMeans

Get Mean Parameters per Group
plot.betaMPT

Plot Convergence for Hierarchical MPT Models
getSamples

Get Posterior Samples from Fitted MPT Model
genMPT

Generate MPT Frequencies
marginalMPT

Marginal Likelihood for Simple MPT
genTraitMPT

Generate Data for Latent-Trait MPT Models
plotDistribution

Plot Distribution of Individual Estimates
TreeBUGS-package

TreeBUGS: Hierarchical Multinomial Processing Tree Modeling
extendMPT

Extend MCMC Sampling for MPT Model
plotPriorPost

Plot Prior vs. Posterior Distribution
posteriorPredictive

Get Posterior Predictive Samples
withinSubjectEQN

Generate EQN Files for Within-Subject Designs
traitMPT

Fit a Hierarchical Latent-Trait MPT Model
transformedParameters

Get Transformed Parameters
priorPredictive

Prior Predictive Samples
genBetaMPT

Generate Data for Beta MPT Models
probitInverse

Probit-Inverse of Group-Level Normal Distribution
plotFit

Plot Posterior Predictive Mean Frequencies
getParam

Get Parameter Posterior Statistics
plotParam

Plot Parameter Estimates
plotPrior

Plot Prior Distributions
plotFreq

Plot Raw Frequencies
summarizeMCMC

MCMC Summary
testHetChi

Chi-Square Test of Heterogeneity
testHetPerm

Permutation Test of Heterogeneity
readEQN

Read multiTree files
simpleMPT

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

Summarize JAGS Output for Hierarchical MPT Models
PPP

Compute Posterior Predictive P-Values
betweenSubjectMPT

Between-Subject Comparison of Parameters
WAIC

WAIC: Widely Applicable Information Criterion