Description
generates a dimension reduction model.
Usage
rd_model(data, variable.pred, mode = 0, scale = TRUE)
Arguments
- 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.