View source: R/mod_dimension_reduction_utils.R
rd_model | R Documentation |
generates a dimension reduction model.
rd_model(data, variable.pred, mode = 0, scale = TRUE)
data |
dataframe |
variable.pred |
the name of the variable to be predicted. |
mode |
the method of dimension reduction is defined as mode=1 is the MCP, and mode=0 the ACP. |
scale |
the scale parameter of the model. |
pcr
, plsr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.