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 |
'rpart'-method: List of required functions for inducing 'rpart'-like LAD regression trees
LAD
LAD
An object of class list
of length 4.
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)
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)