one_pcr_cv: One cross-validation run

Description Usage Arguments Value

View source: R/PCR.R

Description

Make one prediction for one cross-validation run. This is a subroutine to be called by other cross-validation functions.

Usage

1
one_pcr_cv(Xmat, y, z)

Arguments

Xmat

The matrix of training data in the instrumental period.

y

A vector of observations.

z

A vector of left-out points.

Value

A vector of prediction.


ntthung/ldsr documentation built on Aug. 28, 2020, 2:34 a.m.