Learn R Programming

rpart.LAD (version 0.1.3)

LAD: '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

Arguments

Format

An object of class list of length 4.

Examples

Run this code
  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)

Run the code above in your browser using DataLab