powered by
Make one prediction for one cross-validation run. This is a subroutine to be called by other cross-validation functions.
one_pcr_cv(df, z)
The training data, with one column named y, the (transformed) observations. and other columns the predictors.
A vector of left-out points
A vector of prediction.