regressoR (version 1.1.7)

plot_var_pred_rd: plot_var_pred_rd

Description

graph of the variance explained in the variable to predict according to the components used.

Usage

plot_var_pred_rd(model, n.comp = "n.comp.rd")

Arguments

model

a dimension reduction model.

n.comp

the name of the variable that stores the optimum number of components.

Examples

Run this code
# NOT RUN {
library(pls)

x <- rd_model('iris', 'Petal.Length')
exe(x)

plot_var_pred_rd(modelo.rd)

# }

Run the code above in your browser using DataLab