dt_prediction

0th

Percentile

dt_prediction

generates the code to create the prediction of the decision trees model.

Usage
dt_prediction(data = "datos.prueba", model.var = "modelo.dt",
  pred.var = "prediccion.dt")
Arguments
data

the name of the test data.

model.var

the name of the variable that stores the resulting model.

pred.var

the name of the variable that stores the resulting prediction.

Aliases
  • dt_prediction
Examples
# NOT RUN {
library(rpart)

x <- dt_model('iris', 'Petal.Length', model.var = 'model_dt')
exe(x)
print(model_dt)

x <- dt_prediction('iris', 'model_dt', 'my_prediction')
exe(x)
print(my_prediction)

# }
Documentation reproduced from package regressoR, version 1.1.7, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.