talira

Recursive partitioning for classification, regression and survival trees in R

open sourceGPL-2.0-only OR GPL-3.0-onlyfree

rpart is R's recursive partitioning package for building classification, regression and survival trees: a two-stage procedure whose models can be represented as binary trees. It implements most of the functionality of the 1984 CART book by Breiman, Friedman, Olshen and Stone (the name rpart, for Recursive PARTitioning, avoids the trademarked CART). It's one of R's recommended packages and supports user-written split functions.

Problems it solves

  • fit a decision tree for classification or regression in R
  • build a survival tree in R
  • use CART-style recursive partitioning on my data

Features

  • classification, regression and survival trees
  • a two-stage procedure producing binary-tree models
  • implements most of the CART book's methods
  • user-written split functions

Alternatives

The same job

These do what rpart does.

  1. ranger (R) Fast random forests for R and C++, suited to high-dimensional data

Compare rpart with the top 3