Recursive Partitioning Based on Psychometric Models
Overview
Recursive partitioning based on psychometric models, employing the general MOB algorithm (from package partykit) to obtain Bradley-Terry trees, Rasch trees, rating scale and partial credit trees, and MPT trees, trees for 1PL, 2PL, 3PL and 4PL models and generalized partial credit models.
- Code repository changed from R-Forge to Codeberg at: <https://codeberg.org/zeileis/psychotree/>
- Added basic altdoc page with overview and documentation at: <https://zeileis.codeberg.page/psychotree/>
- Converted the
raschtreevignette fromSweavetormarkdown.
psychotree 0.16-2
- Improve non-anchored links in manual pages (prompted by CRAN).
psychotree 0.16-1
- Make sure that
mob()frompartykit(rather thanparty) is called by all tree functions. - Improved version of
node_profileplot(..., what = ...)which now allows to visualize not onlyitempar()but alsocoef(),threshparand so on by settingwhat = "item"or"coef"or"threshold"etc.
Show all changes in 0.16-3Hide the rest of the changes in 0.16-3
- In previous versions the
gpcmtree(..., minsize = ...)argument was ignored. Now it is passed on correctly tomob_control().
psychotree 0.16-0
- New functions
npltree()andgpcmtree()with corresponding visualization functions for model-based recursive partitioning of parametric logistic IRT models (2PL, 3PL, 3PLu, 4PL, Rasch/1PL) and the generalized partial credit model, respectively. The output of these functions might still change slightly in future versions. - Make sure that the "raschtree" vignette can also be compiled even when the
stablelearnerpackage is not available.
psychotree 0.15-4
- Updated the "raschtree" vignette (_Using the raschtree function for detecting differential item functioning in the Rasch model_). This vignette now also includes a section regarding stability assessment via the
stablelearnerpackage (>= 0.1-3).
psychotree 0.15-3
- Added
IGNORE_RDIFFflags in some examples in order to avoid showing diffs due to small numeric deviations in some checks (especially on CRAN).
psychotree 0.15-2
- The method behind
mpttree()has now been published by Behavior Research Methods, see doi:10.3758/s13428-017-0937-z. - The
predict()method forbttreeobjects works again correctly fortype = "parameter"(previously calledtype = "worth") andtype = "rank". Thanks to Heather Turner for pointing out the problem. node_btplot()used to fail forworth = FALSEorref = <character>but works now correctly again. Thanks to Heather Turner for pointing out the problem. Alsoref = <character>now either matches to<object>$labelsor (if not available) tocolnames(<coefficients>)to facilitate usage with thePlackettLucepackage.node_regionplot()now also works correctly on devices with a default white (rather than transparent) background such aspng()orjpeg().node_*panel functions gainedbg = "white"argument to enable different background filling color.
psychotree 0.15-1
- The recently added
mpttree()function is now accompanied by a working paper, seecitation("psychotree")or?mpttreefor details. - Properly imported
grDevicesinNAMESPACE. - Basil Abou El-Komboz changed his name to Basil Komboz.
psychotree 0.15-0
- New function
mpttree()and visualization function for model-based recursive partitioning of multinomial processing tree (MPT) models. These functions are somewhat experimental, and their user interface might change in future releases.
psychotree 0.14-0
- Internals of package
psychotreecompletely reorganized to employ the recent additions and changes inpsychotools(>= 0.3-0) and to use the newpartykit(>= 0.2-0) implementation of themob()function (rather than the oldpartyimplementation). - The handling of argument
refwhen producing a region/effect plot was changed. Whereas in the previous implementation, the restriction specified in this argument was applied to the cumulative absolute item threshold parameters, it now is applied to the absolute item threshold parameters. - New panel-generating visualization functions
node_profileplot()andnode_regionplot()have been added which replace the old functionsnode_raschplot()andnode_effects().
psychotree 0.13-0
- New functionality for recursive partitioning of partial credit and rating scale models via functions
pctree()andrstree(), respectively. These require packagepsychotools>= 0.2-0 which provides the corresponding basic model fitting tools.
psychotree 0.12-3
- Improved Depends/Imports/Suggests declarations in
DESCRIPTION.
psychotree 0.12-2
- Adjusted vignette "raschtree" according to the slightly different results due to the new approximation formulae for p values in the supLM test used in
party::mob()(>= 1.0.3). - Improved the package's tests by adding reference output for the examples and vignette for comparison checks.
psychotree 0.12-1
- Moved all base functionality to the new
psychotoolspackage in order to provide common infrastructure for bothpsychotreeandpsychomixas well as other packages. This affects thepaircompclass and associated methods as well as the model fittersbtReg.fit()andRaschModel.fit()and associated methods. - The data sets
Firstnames,GermanParties2009, andSoundqualityhave also been moved topsychotools.
psychotree 0.11-1
- Enhanced
raschtree()functionality, introduced in detail in the newvignette("raschtree", package = "psychotree"). - Added subsample from SPIEGEL Studentenpisa (
SPISA) quiz for students from Bavaria that answered the same set of questions. - Added artificial data set
DIFSimexhibiting differential item functioning, employed for illustrating Rasch trees.
psychotree 0.9-1
- Added
raschtree()function, based on simpleRaschModel()(for binary 0/1 items). - Some bug fixes (subsets with missing
drop = FALSE) forpaircomp()andbttree()with only two objects
psychotree 0.9-0
- First CRAN release of the package accompanying the forthcoming paper _Accounting for Individual Differences in Bradley-Terry Models by Means of Recursive Partitioning_ by Strobl, Wickelmaier, and Zeileis, accepted for publication in _Journal of Educational and Behavioral Statistics_.
- Compared to earlier package versions available from R-Forge, this package does not depend on data/code from the
prefmod2package. All required functionality (basic Bradley-Terry regression, paircomp class, data sets) are now contained in thepsychotreepackage.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-14
- NOTE9 OK, 4 NOTE2026-07-11
- OK13 OK2026-06-27
Show 4 earlier changesHide 4 earlier changes
- WARNING12 OK, 1 WARNING2026-06-14
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-07
- OK14 OK2026-03-10
Documentation
- Help pages
- 16
- Examples that run
- 100%11 run in a plain check
- Exported functions with examples
- 55%
- Documented parameters
- 71%
- Return-value docs
- 100%
- Help pages citing references
- 63%
Downloads
Repository
Repository codeberg.org/zeileis/psychotree is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.
Dependencies
Installing psychotree adds 9 packages (6 with compiled code, 7.2 MB of source tarballs). Heaviest: partykit 2.1 MB, sandwich 1.4 MB, mvtnorm 1.0 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.16-3Latest
- RR 4.6.0 released · 2026-04-24
- 0.16-22025-07-25 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.16-12024-04-11 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.16-0
- RR 4.2.0 released · 2022-04-22
- 0.15-42021-05-21 · diff ↗
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.15-32020-01-30 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.15-22018-12-20 · diff ↗
- RR 3.5.0 released · 2018-04-23
Show 20 earlier eventsHide 20 earlier events
- RR 3.4.0 released · 2017-04-21
- 0.15-12016-09-09 · diff ↗
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- 0.15-0
- 0.14-02014-08-29 · diff ↗ ·
removed 6 exports
RaschModel, node_raschplot, RSModel, PCModel, node_effects, btRegadded 2 exports
node_profileplot, node_regionplot - RR 3.1.0 released · 2014-04-10
- 0.13-0
- 0.12-32013-09-05 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 0.12-22012-10-23 · diff ↗
- RR 2.15.0 released · 2012-03-30
- RR 2.14.0 released · 2011-10-31
- 0.12-12011-10-05 · diff ↗ ·
removed 9 exports
RaschModel.fit, worth, btReg.fit, paircomp, covariates, covariates<-, labels<-, mscale, mscale<- - RR 2.13.0 released · 2011-04-13
- 0.11-1
- RR 2.12.0 released · 2010-10-15
- RR 2.11.0 released · 2010-04-22
- 0.9-02009-11-04
- RR 2.10.0 released · 2009-10-26
Package metadata
- First published
- 2009-11-04
- Total releases
- 16 / 17 yrs
- License
- GPL-2 | GPL-3 OSI
- Minimum R
- ≥ 4.0.0
- Bundled data
- 39 KB / 6 files
- Download size
- 418 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("psychotree")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.3102/1076998609359791, 10.1007/s11336-013-9388-3, 10.1177/0013164416664394, 10.3758/s13428-017-0937-z, 10.1007/978-3-531-92543-1.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.