TreeBUGS
R package for fitting hierarchical multinomial processing tree (MPT) models
Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
✓DOI references
Found 16 DOI reference(s) in README -
○Academic publication links
-
✓Committers with academic emails
4 of 6 committers (66.7%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (16.6%) to scientific vocabulary
Repository
R package for fitting hierarchical multinomial processing tree (MPT) models
Statistics
- Stars: 13
- Watchers: 6
- Forks: 5
- Open Issues: 3
- Releases: 5
Metadata Files
README.md
TreeBUGS

TreeBUGS is an R package that facilitates using hierarchical multinomial processing tree (MPT) models that are often used in cognitive psychology (Erdfelder et al., 2009). Specifically, TreeBUGS implements the Bayesian estimation via MCMC sampling for the Beta-MPT (Smith & Batchelder, 2010), the latent-trait MPT model (Klauer, 2010), and standard (fixed-effects) MPT models.
General Approach of Using TreeBUGS
In the most simple user scenario, the following steps are required:
- Define path to existing MPT model file in .eqn format (cf. multiTree; Moshagen, 2010)
- Define path to data set with individual frequencies (.csv file: comma separated, rows=persons, columns=labeled categories)
- Call
betaMPTortraitMPT(exact code in manual/vignette) - Check convergence of MCMC chains
- Summarize and plot results using functions tailored to MPT models
These steps are explained in more detail in the package vignette, which can be opened in R by typing vignette("TreeBUGS").
Tutorial on MPT Modeling
A tutorial paper on multinomial processing tree models (including hierarchical model fitting with TreeBUGS) can be found here:
- Schmidt, O., Erdfelder, E., & Heck, D. W. (2023). How to develop, test, and extend multinomial processing tree models: A tutorial. Psychological Methods. https://doi.org/10.1037/met0000561 (Preprint: https://psyarxiv.com/gh8md/)
Installing TreeBUGS
TreeBUGS requires the software JAGS.
To install the latest release of TreeBUGS from CRAN, type the following into the R console:
r
install.packages("TreeBUGS")
To install the latest developer version of TreeBUGS from GitHub, run: ```r
Dependencies:
install.packages(c("devtools", "coda", "runjags", "hypergeo", "testthat", "rjags", "Rcpp", "RcppArmadillo", "logspline")) devtools::installgithub("danheck/TreeBUGS", buildvignettes = TRUE) ```
To compile C++ code, Windows and Mac require
Rtools and
Xcode Command Line Tools, respectively.
Moreover, on Mac, it might be necessary to install the library gfortran manually, as required to compile the package RcppArmadillo.
<!--
curl -O http://r.research.att.com/libs/gfortran-4.8.2-darwin13.tar.bz2
sudo tar fvxz gfortran-4.8.2-darwin13.tar.bz2 -C /
-->
Citation
If you use TreeBUGS, please cite the software as follows:
- Heck, D. W., Arnold, N. R., & Arnold, D. (2018). TreeBUGS: An R package for hierarchical multinomial-processing-tree modeling. Behavior Research Methods, 50, 264-284. https://doi.org/10.3758/s13428-017-0869-7
References
Batchelder, W. H., & Riefer, D. M. (1999). Theoretical and empirical review of multinomial process tree modeling. Psychonomic Bulletin & Review, 6, 57–86. https://doi.org/10.3758/BF03210812
Erdfelder, E., Auer, T.-S., Hilbig, B. E., Assfalg, A., Moshagen, M., & Nadarevic, L. (2009). Multinomial processing tree models: A review of the literature. Journal of Psychology, 217, 108–124. https://doi.org/10.1027/0044-3409.217.3.108
Klauer, K. C. (2010). Hierarchical multinomial processing tree models: A latent-trait approach. Psychometrika, 75, 70–98. https://doi.org/10.1007/s11336-009-9141-0
Matzke, D., Dolan, C. V., Batchelder, W. H., & Wagenmakers, E.-J. (2015). Bayesian estimation of multinomial processing tree models with heterogeneity in participants and items. Psychometrika, 80, 205–235. https://doi.org/10.1007/s11336-013-9374-9
Moshagen, M. (2010). multiTree: A computer program for the analysis of multinomial processing tree models. Behavior Research Methods, 42, 42–54. https://doi.org/10.3758/BRM.42.1.42
Smith, J. B., & Batchelder, W. H. (2010). Beta-MPT: Multinomial processing tree models for addressing individual differences. Journal of Mathematical Psychology, 54, 167–183. https://doi.org/10.1016/j.jmp.2009.06.007
Owner
- Name: Daniel Heck
- Login: danheck
- Kind: user
- Location: Germany
- Company: Philipps-Universität Marburg
- Website: https://www.dwheck.de
- Twitter: Daniel_W_Heck
- Repositories: 5
- Profile: https://github.com/danheck
GitHub Events
Total
- Watch event: 1
- Push event: 2
Last Year
- Watch event: 1
- Push event: 2
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Daniel Heck | d****k@w****e | 282 |
| mariusbarth | m****h@u****e | 12 |
| denis-arnold | d****d@u****e | 2 |
| Frederik Aust | f****t@u****e | 1 |
| Paul Soelder | p****r@m****g | 1 |
| unknown | d****k@g****e | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 7
- Total pull requests: 8
- Average time to close issues: 4 days
- Average time to close pull requests: 1 day
- Total issue authors: 6
- Total pull request authors: 3
- Average comments per issue: 2.14
- Average comments per pull request: 1.0
- Merged pull requests: 7
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- saurabhr (2)
- mariusbarth (1)
- psyxusheng (1)
- singmann (1)
- soelderer (1)
- JacobElder (1)
Pull Request Authors
- mariusbarth (6)
- crsh (1)
- soelderer (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 401 last-month
- Total docker downloads: 21,154
- Total dependent packages: 1
- Total dependent repositories: 1
- Total versions: 17
- Total maintainers: 1
cran.r-project.org: TreeBUGS
Hierarchical Multinomial Processing Tree Modeling
- Homepage: https://github.com/danheck/TreeBUGS
- Documentation: http://cran.r-project.org/web/packages/TreeBUGS/TreeBUGS.pdf
- License: GPL-3
-
Latest release: 1.5.0
published about 3 years ago
Rankings
Maintainers (1)
Dependencies
- R >= 4.0.0 depends
- MASS * imports
- Rcpp >= 0.12.6 imports
- coda * imports
- grDevices * imports
- graphics * imports
- hypergeo * imports
- logspline * imports
- parallel * imports
- rjags * imports
- runjags * imports
- stats * imports
- utils * imports
- R.rsp * suggests
- knitr * suggests
- rmarkdown * suggests
- testthat * suggests
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite