| predict.tfm | R Documentation |
Computes point forecasts and prediction intervals for transfer function models.
## S3 method for class 'tfm'
predict(
object,
newdata = NULL,
y = NULL,
ori = NULL,
n.ahead = NULL,
level = 0.95,
i = NULL,
envir = NULL,
...
)
object |
A fitted |
newdata |
Optional matrix or vector of future values for exogenous regressors and inputs. Rows correspond to forecast horizon, columns to predictors. |
y |
Optional |
ori |
Forecast origin (observation index). Default is last observation. |
n.ahead |
Number of steps ahead to forecast. Default is series frequency. |
level |
Confidence level(s) for prediction intervals (0-1). Default is 0.95. Can be a vector for multiple intervals. |
i |
Optional differencing operator (lagpol) to apply before forecasting. |
envir |
Environment for evaluation. NULL uses calling environment. |
... |
Additional arguments (currently unused). |
Future values for transfer function inputs can be provided in three ways:
(1) extending input series beyond output length, (2) automatic forecasting
from associated um models, or (3) via the newdata argument.
If Box-Cox transformation was used, forecasts are back-transformed and intervals adjusted accordingly.
Object of class predict.tfm containing:
z |
Complete series including forecasts |
rmse |
Root mean square error for each forecast |
low, upp |
Lower and upper prediction interval bounds (matrices) |
level |
Confidence level(s) used |
dates |
Time points for all observations |
ori, ori.date |
Forecast origin (index and date) |
n.ahead |
Number of forecasts |
tfm, fit.tfm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.