gettree: Extract tree model

Description Usage Arguments Details Value Examples

Description

Extract a tree model from an object of class rseg.

Usage

1

Arguments

x

an object of class rseg fit by cseg, eseg or rseg.

Details

Recursive segmentation by cseg, eseg or rseg fits models by iterative application of the functions ctree, evtree or rpart, respectively. Therefore, it is possible to extract a respective tree model from an object of class rseg.

Value

A tree model fit by the functions ctree, evtree or rpart.

Examples

1
2
3
4
5
airq <- subset(airquality, !is.na(Ozone))
airct <- cseg(Ozone ~ ., data = airq)
aircttree <- gettree(airct)
aircttree
plot(aircttree)

rseg documentation built on May 2, 2019, 6:38 p.m.

Related to gettree in rseg...