one_pcr_cv {ldsr} | R Documentation |
One cross-validation run
Description
Make one prediction for one cross-validation run. This is a subroutine to be called by other cross-validation functions.
Usage
one_pcr_cv(df, z)
Arguments
df |
The training data, with one column named y, the (transformed) observations. and other columns the predictors. |
z |
A vector of left-out points |
Value
A vector of prediction.
[Package ldsr version 0.0.2 Index]