Package 'rpart.LAD'

Title: Least Absolute Deviation Regression Trees
Description: Recursive partitioning for least absolute deviation regression trees. Another algorithm from the 1984 book by Breiman, Friedman, Olshen and Stone in addition to the 'rpart' package (Breiman, Friedman, Olshen, Stone (1984, ISBN:9780412048418).
Authors: Stephan Dlugosz [aut,cre]
Maintainer: Stephan Dlugosz <[email protected]>
License: GPL-3
Version: 0.1.3
Built: 2024-12-13 06:30:32 UTC
Source: CRAN

Help Index


'rpart'-method: List of required functions for inducing 'rpart'-like LAD regression trees

Description

'rpart'-method: List of required functions for inducing 'rpart'-like LAD regression trees

Usage

LAD

Format

An object of class list of length 4.

Examples

mystate <- data.frame(state.x77, region = state.region)
  names(mystate) <- casefold(names(mystate)) #remove mixed case

  fit <-  rpart(murder ~ ., data = mystate, minsplit = 10, method = LAD)
  plot(fit); text(fit)