# partykit

> An R toolkit for representing, plotting and fitting tree-structured regression and classification models

Source: https://talira.ai/catalog/partykit-gz9kj013
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / statistics](https://talira.ai/categories/libraries/math/statistics), [ai / ml / classical ml](https://talira.ai/categories/ai/ml/classical-ml), [languages / r](https://talira.ai/categories/languages/r)
- Licence: GPL-2.0-only OR GPL-3.0-only[^1]
- Pricing: Free[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Torsten Hothorn](https://talira.ai/orgs/torsten-hothorn.md), [Achim Zeileis](https://talira.ai/orgs/achim-zeileis.md)

partykit is an R package with shared infrastructure for representing, summarizing and visualizing tree-structured regression and classification models. Trees read or converted from rpart, RWeka or PMML become objects with the same `print()`, `plot()` and `predict()` methods, and it has new implementations of conditional inference trees (`ctree()`) and model-based recursive partitioning (`mob()`) from the older party package. Torsten Hothorn and Achim Zeileis wrote it, and it isn't PartyKit, the real-time framework.

## Links

- Codeberg: https://codeberg.org/thothorn/partykit

## Problems it solves

- fit a conditional inference tree in R
- print, plot and predict from rpart and RWeka trees through one interface in R
- model-based recursive partitioning to find subgroups with different regression fits in R

## Trust

Overall: 0.27 out of 1.
Signals: backing 0.30, extensibility 0.00.

- backed by Torsten Hothorn and Achim Zeileis

Warnings:

- activity not tracked: Talira doesn't read Codeberg repositories yet

## Alternatives

- [party](https://talira.ai/catalog/party-dfp7zajt.md): Conditional inference trees and recursive partitioning in R

## Sources

[^1]: https://cran.r-project.org/package=partykit (checked 30 Nov 2026)
