{"id":16472157,"url":"https://github.com/danheck/treebugs","last_synced_at":"2025-03-16T18:31:30.317Z","repository":{"id":56935347,"uuid":"47275622","full_name":"danheck/TreeBUGS","owner":"danheck","description":"R package for fitting hierarchical multinomial processing tree (MPT) models","archived":false,"fork":false,"pushed_at":"2025-03-12T22:06:46.000Z","size":60382,"stargazers_count":12,"open_issues_count":3,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-12T23:19:31.207Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danheck.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-02T17:05:11.000Z","updated_at":"2025-03-12T22:06:52.000Z","dependencies_parsed_at":"2023-09-23T08:50:37.513Z","dependency_job_id":"2f9c6541-a0b4-4375-8942-5410c6a16e13","html_url":"https://github.com/danheck/TreeBUGS","commit_stats":{"total_commits":291,"total_committers":5,"mean_commits":58.2,"dds":"0.054982817869415834","last_synced_commit":"b329cc4a5e61d510ae308f67ef6bef5bdd13e36a"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danheck%2FTreeBUGS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danheck%2FTreeBUGS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danheck%2FTreeBUGS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danheck%2FTreeBUGS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danheck","download_url":"https://codeload.github.com/danheck/TreeBUGS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826788,"owners_count":20354220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T12:16:21.278Z","updated_at":"2025-03-16T18:31:29.448Z","avatar_url":"https://github.com/danheck.png","language":"R","readme":"[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/TreeBUGS)](https://cran.r-project.org/package=TreeBUGS)\n[![Workflow](https://github.com/danheck/TreeBUGS/actions/workflows/check-standard.yaml/badge.svg)](https://github.com/danheck/TreeBUGS/actions/workflows/check-standard.yaml)\n![CRAN/METACRAN](https://img.shields.io/cran/l/TreeBUGS)\n[![monthly downloads](https://cranlogs.r-pkg.org/badges/TreeBUGS)](https://cranlogs.r-pkg.org/badges/TreeBUGS)\n[![total downloads](https://cranlogs.r-pkg.org/badges/grand-total/TreeBUGS)](https://cranlogs.r-pkg.org/badges/grand-total/TreeBUGS)\n\n\n# TreeBUGS\n\n\u003cimg src=\"man/figures/TreeBUGS.png\" width=\"200\" style='float: right; border:0px'\u003e\n\nTreeBUGS is an R package that facilitates using hierarchical multinomial processing tree (MPT) models that are often used in cognitive psychology (Erdfelder et al., 2009). \nSpecifically, TreeBUGS implements the Bayesian estimation via MCMC sampling for the Beta-MPT (Smith \u0026 Batchelder, 2010), the latent-trait MPT model (Klauer, 2010), and standard (fixed-effects) MPT models.\n\n## General Approach of Using TreeBUGS\n\nIn the most simple user scenario, the following steps are required:\n\n1. Define path to existing MPT model file in .eqn format (cf. multiTree; Moshagen, 2010)\n2. Define path to data set with individual frequencies (.csv file: comma separated, rows=persons, columns=labeled categories)\n3. Call `betaMPT` or `traitMPT` (exact code in manual/vignette)\n4. Check convergence of MCMC chains\n5. Summarize and plot results using functions tailored to MPT models\n\nThese steps are explained in more detail in the package vignette, which can be opened in R by typing `vignette(\"TreeBUGS\")`. \n\n\n## Tutorial on MPT Modeling\n\nA tutorial paper on multinomial processing tree models (including hierarchical model fitting with TreeBUGS) can be found here:\n\n- Schmidt, O., Erdfelder, E., \u0026 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/)\n\n\n## Installing TreeBUGS\n\nTreeBUGS requires the software [JAGS](https://mcmc-jags.sourceforge.io/). \nTo install the latest release of TreeBUGS from [CRAN](https://cran.r-project.org/web/packages/TreeBUGS), type the following into the R console:\n```r\ninstall.packages(\"TreeBUGS\")\n```\n\nTo install the latest developer version of TreeBUGS from GitHub, run:\n```r\n### Dependencies:\ninstall.packages(c(\"devtools\", \"coda\", \"runjags\", \"hypergeo\", \"testthat\",\n                   \"rjags\", \"Rcpp\", \"RcppArmadillo\", \"logspline\"))\ndevtools::install_github(\"danheck/TreeBUGS\", build_vignettes = TRUE)\n```\n\nTo compile C++ code, Windows and Mac require \n[Rtools](https://cran.r-project.org/bin/windows/Rtools/) and \n[Xcode Command Line Tools](https://www.maketecheasier.com/install-command-line-tools-without-xcode/), respectively. \nMoreover, on Mac, it might be necessary to install the library `gfortran` manually by typing the following into the console \n([required to compile the package `RcppArmadillo`](http://thecoatlessprofessor.com/programming/rcpp-rcpparmadillo-and-os-x-mavericks-lgfortran-and-lquadmath-error/)):\n\n```\ncurl -O http://r.research.att.com/libs/gfortran-4.8.2-darwin13.tar.bz2\nsudo tar fvxz gfortran-4.8.2-darwin13.tar.bz2 -C /\n```\n\n\n## Citation\n\nIf you use TreeBUGS, please cite the software as follows:\n\n- Heck\\*, D. W., Arnold\\*, N. R., \u0026 Arnold, D. (2018). \nTreeBUGS: An R package for hierarchical multinomial-processing-tree modeling. \n*Behavior Research Methods, 50*, 264-284. \nhttps://doi.org/10.3758/s13428-017-0869-7\n\n\n## References\n\n* Batchelder, W. H., \u0026 Riefer, D. M. (1999). \nTheoretical and empirical review of multinomial process tree modeling. \n*Psychonomic Bulletin \u0026 Review, 6*, 57–86. \nhttps://doi.org/10.3758/BF03210812\n\n* Erdfelder, E., Auer, T.-S., Hilbig, B. E., Assfalg, A., Moshagen, M., \u0026 Nadarevic, L. (2009). \nMultinomial processing tree models: A review of the literature. \n*Journal of Psychology, 217*, 108–124. \nhttps://doi.org/10.1027/0044-3409.217.3.108\n\n* Klauer, K. C. (2010). \nHierarchical multinomial processing tree models: A latent-trait approach. \n*Psychometrika, 75*, 70–98. \nhttps://doi.org/10.1007/s11336-009-9141-0\n\n* Matzke, D., Dolan, C. V., Batchelder, W. H., \u0026 Wagenmakers, E.-J. (2015). \nBayesian estimation of multinomial processing tree models with heterogeneity in participants and items. \n*Psychometrika, 80*, 205–235. \nhttps://doi.org/10.1007/s11336-013-9374-9\n\n* Moshagen, M. (2010). \nmultiTree: A computer program for the analysis of multinomial processing tree models. \n*Behavior Research Methods, 42*, 42–54. \nhttps://doi.org/10.3758/BRM.42.1.42\n\n* Smith, J. B., \u0026 Batchelder, W. H. (2010). \nBeta-MPT: Multinomial processing tree models for addressing individual differences. \n*Journal of Mathematical Psychology, 54*, 167–183. \nhttps://doi.org/10.1016/j.jmp.2009.06.007\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanheck%2Ftreebugs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanheck%2Ftreebugs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanheck%2Ftreebugs/lists"}