# S3 method for pcreg
predict(object, newdata, ...)
Arguments
object
the S3 class object produced as output from the function pcreg()
newdata
dataframe with new data and with same column names as used in the original
argument to pcreg.
…
additional arguments
Value
the predicted values
Details
The prediction method, predict.mvr(), which is available in the pls
package is used.
We take advantage of this since it avoids fussing with scaling issues
since it is automatically handled
for us by predict.mvr()