graph the root mean square error of cross validation according to components used.
plot_RMSE(model, n.comp = "n.comp.rd")
a dimension reduction model.
the name of the variable that stores the optimum number of components.
# NOT RUN {
library(pls)
x <- rd_model('iris', 'Petal.Length')
exe(x)
plot_RMSE(modelo.rd)
# }
Run the code above in your browser using DataLab