SF.PC | R Documentation |
Principal component regression for sufficient forecasting
SF.PC(y, X, newX = NULL, K = "default", L = "default")
y |
Response, T by 1 matrix |
X |
Predictors, p by T matrix |
newX |
New predictors, a vector contains p entries (or |
K |
The number of common factors (default = obtained
by |
L |
The number of principal components used in the prediction,
L is required to be no greater than K (default = |
Out-of-sample forecast for newX
; or in-sample forecast for the last
observed data point if newX
is NULL
utils::data(dataExample,package = "sufficientForecasting") SF.PC(dataExample$y,dataExample$X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.