LAD | R Documentation |
'rpart'-method: List of required functions for inducing 'rpart'-like LAD regression trees
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.