regressoR (version 1.1.7)

dt_model: dt_model

Description

generates the code to create the decision trees model.

Usage

dt_model(data = "datos.aprendizaje", variable.pred = NULL,
  model.var = "modelo.dt", minsplit = 20, maxdepth = 15)

Arguments

data

the name of the learning data.

variable.pred

the name of the variable to be predicted.

model.var

the name of the variable that stores the resulting model.

minsplit

the minsplit parameter of the model.

maxdepth

the maxdepth parameter of the model.

See Also

rpart

Examples

Run this code
# NOT RUN {
library(rpart)

x <- dt_model('iris', 'Petal.Length')
exe(x)
print(modelo.dt)

# }

Run the code above in your browser using DataCamp Workspace