A Toolkit for Recursive Partytioning
Overview
A toolkit with infrastructure for representing, summarizing, and visualizing tree-structured regression and classification models. This unified infrastructure can be used for reading/coercing tree models from different sources ('rpart', 'RWeka', 'PMML') yielding objects that share functionality for print()/plot()/predict() methods. Furthermore, new and improved reimplementations of conditional inference trees (ctree()) and model-based recursive partitioning (mob()) from the 'party' package are provided based on the new infrastructure. A description of this package was published by Hothorn and Zeileis (2015) https://jmlr.org/papers/v16/hothorn15a.html.
Documentation
- Argument
fractionincforestwas incorrectly documented, interchanging the proportions used for tree induction and for parameter estimation. A corresponding test of documented behaviour was added. Reported by Lisa Schlosser and colleagues at DataLabHell. - In the
survregexample invignette("mob", package = "partykit")it is no longer necessary to add alogLik.survregmethod because this has been available in thesurvivalpackage since version 2.37-6.
Bugfixes
- Argument
strataincforestwas silently ignored and works as advertised now. A corresponding test was added. Reported by Lisa Schlosser and colleagues at DataLabHell. - Overflow when predicting from forests with total number of nodes exceeding the sample size. A corresponding test was added. Reported by Lisa Schlosser and colleagues at DataLabHell.
- Argument
clusterinmobwas not passed correctly to thefitfunction (reported by Lisa Schlosser and colleagues at DataLabHell). This was inconsequential for all examples in the package becauseclusterwas only used for testing but not fitting the models. - Model weights were not preserved correctly in some cases in
as.constparty(reported by Lisa Schlosser and colleagues at DataLabHell).
Other
- Reduce memory footprint when fitting forests in parallel, thanks to Henrik Bengtsson.
From inst/NEWS.Rd in the release
Install
Health
- OK13 OK2026-08-30
- ERROR10 OK, 3 ERROR2026-07-25
- OK13 OK2026-07-22
- NOTE9 OK, 4 NOTE2026-07-11
- OK13 OK2026-06-09
Show 8 earlier changesHide 8 earlier changes
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-04-20
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-04-06
- NOTE13 OK, 1 NOTE2026-04-04
- OK14 OK2026-03-25
- NOTE13 OK, 1 NOTE2026-03-15
- WARNING11 OK, 2 NOTE, 1 WARNING2026-03-10
Documentation
- Help pages
- 25
- Examples that run
- 100%19 run in a plain check
- Exported functions with examples
- 74%
- Documented parameters
- 83%
- Return-value docs
- 83%
- Help pages citing references
- 56% with a bibliography file
Also includes 1 demo script (run with demo())
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- GitHub only
- Median days to close, 50 most recently updated closed PRs
- GitHub only
Repository codeberg.org/thothorn/partykit is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.
Dependencies
Installing partykit adds 7 packages (4 with compiled code, 4.7 MB of source tarballs). Heaviest: sandwich 1.4 MB, mvtnorm 1.0 MB, libcoin 886 KB.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 8 more dependents and 35 packages that suggest it on CRAN ↗
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 3.0.2Latest
- RR 3.0.0 released · 2013-04-03
- 3.0.02013-03-22 · diff ↗
Show 57 earlier eventsHide 57 earlier events
- 2.15.12012-06-05 · diff ↗
- RR 2.15.0 released · 2012-03-30
- 2.14.22012-01-11 · diff ↗
- 2.14.12011-12-18 · diff ↗
- RR 2.14.0 released · 2011-10-31
- 2.13.22011-09-29 · diff ↗
- 1.3-12026-10-22 · diff ↗ ·
listed once in CRAN's queue
Seen in one reading of CRAN's incoming queue, at 2026-10-22 17:47 UTC, so it stayed less than the time between readings. - 1.3-02026-08-22 · diff ↗
- 1.2-292026-07-17 · diff ↗
- 1.2-282026-07-12 · diff ↗
- 1.2-272026-03-06 · diff ↗
- 1.2-262026-03-06 · diff ↗
- 1.2-252026-02-07 · diff ↗
- 1.2-242025-05-02 · diff ↗
- 1.2-232024-12-02 · diff ↗
- 1.2-222024-08-17 · diff ↗
- 1.2-212024-07-18 · diff ↗
- 1.2-202023-04-14 · diff ↗
- 1.2-192023-03-19 · diff ↗
- 1.2-182023-03-09 · diff ↗
- 1.2-172023-02-28 · diff ↗
- 1.2-162022-06-20 · diff ↗
- 1.2-152021-08-23 · diff ↗
- 1.2-132021-03-03 · diff ↗
- 1.2-122021-02-08 · diff ↗
- 1.2-112020-12-09 · diff ↗
- 1.2-102020-10-12 · diff ↗
- 1.2-92020-07-10 · diff ↗
- 1.2-82020-06-10 · diff ↗
- 1.2-72020-03-06 · diff ↗
- 1.2-62020-01-30 · diff ↗
- 1.2-52019-07-18 · diff ↗
- 1.2-42019-05-17 · diff ↗
- 1.2-32019-01-31 · diff ↗
- 1.2-2
- 1.2-12018-04-20 · diff ↗
- 1.2-02017-12-18 · diff ↗ ·
removed 2 exports
palmtree, model.frame.rpartadded 10 exports
extree_data, extree_fit, varimp.constparty, varimp, gettree, varimp.cforest, gettree.cforest, predict.party, get_paths, model_frame_rpart - 1.1-12016-09-20 · diff ↗
- 1.1-0
- 1.0-52016-02-05 · diff ↗
- 1.0-42015-09-29 · diff ↗
- 1.0-32015-08-14 · diff ↗
- 1.0-22015-07-28 · diff ↗
- 1.0-12015-04-08 · diff ↗
- 1.0-02015-02-21 · diff ↗
- 0.8-4
- 0.8-32014-12-15 · diff ↗
- 0.8-22014-09-12 · diff ↗
- 0.8-1
- 0.8-02014-03-27 · diff ↗ ·
removed 1 export
as.party.J48added 16 exports
sctest.constparty, mob, mob_control, refit.modelparty, sctest.modelparty, lmtree, glmtree, nodeprune, plot.modelparty, predict.modelparty, print.modelparty, nodeprune.party, node_bivplot, node_ecdf, node_mvar, as.party.Weka_tree - 0.1-62013-09-03 · diff ↗
- 0.1-52013-03-22 · diff ↗
- 0.1-4
- 0.1-32012-01-11 · diff ↗
- 0.1-22011-12-18 · diff ↗
- 0.1-12011-09-29
- RR 2.13.0 released · 2011-04-13
Package metadata
- First published
- 2011-09-29
- Total releases
- 56 / 15 yrs
- License
- GPL-2 | GPL-3 OSI
- Minimum R
- ≥ 4.0.0
- Bundled data
- 0.9 KB / 2 files
- Download size
- 2.1 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("partykit")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1198/106186006x133933, 10.1198/106186008x319331.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.