predict.fm | R Documentation |
Produces forecasts of the data input to object
for a given forecasting horizon by
estimating the best linear predictors of the common component
## S3 method for class 'fm'
predict(object, n.ahead = 1, fc.restricted = TRUE, r = c("ic", "er"), ...)
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 |
a list containing
is |
in-sample predictions |
forecast |
forecasts for the given forecasting horizon |
r |
factor number |
fnets.factor.model
out <- fnets.factor.model(data.restricted, fm.restricted = TRUE)
pre <- predict(out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.