regressoR (version 1.1.7)

rl_prediction: rl_prediction

Description

generates the code to create the prediction of the linear regression model.

Usage

rl_prediction(data = "datos.prueba", model.var = "modelo.rl",
  pred.var = "prediccion.rl")

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.

See Also

predict

Examples

Run this code
# NOT RUN {
x <- rl_model('iris', 'Petal.Length', 'model_rl')
exe(x)
print(model_rl)

x <- rl_prediction('iris', 'model_rl', 'my_prediction')
exe(x)
print(my_prediction)

# }

Run the code above in your browser using DataCamp Workspace