powered by
Produces forecasts of the data input to object for a given forecasting horizon by estimating the best linear predictors of the common component
object
# S3 method for fm predict(object, n.ahead = 1, fc.restricted = TRUE, r = c("ic", "er"), ...)
a list containing
in-sample predictions
forecasts for the given forecasting horizon
factor number
fm object
fm
forecasting horizon
if fc.restricted = TRUE, the forecast is generated under a restricted factor model
fc.restricted = TRUE
number of static factors, or a string specifying the factor number selection method when fc.restricted = TRUE; possible values are:
"ic"
information criteria of Alessi, Barigozzi & Capasso (2010)
"er"
eigenvalue ratio of Ahn & Horenstein (2013)
not used
fnets.factor.model
out <- fnets.factor.model(data.restricted, fm.restricted = TRUE) pre <- predict(out)
Run the code above in your browser using DataLab