rd_prediction: rd_prediction
Description
generates the prediction of a dimension reduction model.
Usage
rd_prediction(model, test.data, ncomp = NULL)
Arguments
- model
dimension reduction model(pcr/plsr).
- test.data
dataframe.
- ncomp
a numerical value in case you don't want to use the optimum number of components.