predict.fm {fnets} | R Documentation |
Forecasting for factor models
Description
Produces forecasts of the data input to object
for a given forecasting horizon by
estimating the best linear predictors of the common component
Usage
## S3 method for class 'fm'
predict(object, n.ahead = 1, fc.restricted = TRUE, r = c("ic", "er"), ...)
Arguments
object |
|
n.ahead |
forecasting horizon |
fc.restricted |
if |
r |
number of static factors, or a string specifying the factor number selection method when
|
... |
not used |
Value
a list containing
is |
in-sample predictions |
forecast |
forecasts for the given forecasting horizon |
r |
factor number |
See Also
Examples
out <- fnets.factor.model(data.restricted, fm.restricted = TRUE)
pre <- predict(out)
[Package fnets version 0.1.6 Index]