ida.data.frame).
idaTree(
form,
data,
id,
minsplit=50,
maxdepth=10,
qmeasure=NULL,
minimprove=0.01,
eval=NULL,
valtable=NULL,
modelname=NULL
)
"plot"(x,...)
"predict"(object, newdata, id, ...)formula object that specifies both the name of the column that contains the categorical
target variable and either a list of columns separated by plus symbols (each column corresponds to one predictor
variable) or a single period (to specify that all other columns in the IDA data frame are to be used as predictors."Acc" (this is the default) and "wAcc".
For a regression tree, allowed values are "mse" (this is the default), "r2", "pearson", and "spearman"."entropy" (this is the default) and "gini".
For a regression tree, the only allowed value is "variance" (this is the default).idaRetrieveModel or idaDropModel.idaTree.idaTree.idaTree and rpart.
minimprove.
minsplit.
maxdepth.
If variable that is used to determine a split does not have a value, the corresponding row remains in the node that is being split.
The output of the print function for a idaTree object is a textual description of the corresponding model.
The output of the plot function for a idaTree object is a graphical representation of the corresponding model.
Models are stored persistently in database under the name modelname. Model names cannot have more than 64 characters and
cannot contain white spaces. They need to be quoted like table names, otherwise they will be treated upper case by default. Only one
model with a given name is allowed in the database at a time. If a model with modelname already exists, you need to drop it with idaDropModel
first before you can create another one with the same name. The model name can be used to retrieve the model later (idaRetrieveModel).
The predict.idaTree method applies the model to the data in a table and returns a IDA data frame that contains
a list of tuples, each of which comprises one row ID and one prediction.
idaRetrieveModel, idaDropModel, idaListModels