one_pcr_cv {ldsr} | R Documentation |
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)
df |
The training data, with one column named y, the (transformed) observations. and other columns the predictors. |
z |
A vector of left-out points |
A vector of prediction.