rpart: Recursive partitioning and Regression Trees

Description Usage Arguments Value See Also Examples

Description

Fit a rpart model

Usage

1

Arguments

formula

formula specifying the independent and dependent variable columns

data

FLTable

control

A list of options that control details of the rpart algorithm. Minsplit: Minimum number of observations a node should have in order to be splitted. Maxdepth: The maximum depth to which the tree can go. cp: Complexity parameter, 1-purity threshold in DB Lytix manual

Value

An object of class "FLrpart" containing the tree structure details.

See Also

rpart for corresponding R function reference.

Examples

1
2
3
4
5
6
7
8
flt<-FLTable(getTestTableName("tblDecisionTreeMulti"),
				"ObsID","VarID","Num_Val")
flobj<-rpart(data = flt, formula = -1~.)
summary(flobj)
newdata <- flt[1:50,1:4]
pred <- predict(flobj, newdata)
print(flobj)
plot(flobj)

Fuzzy-Logix/AdapteR documentation built on May 6, 2019, 5:07 p.m.