Description Usage Arguments Value Author(s) See Also
Like its counterpart maeforecast.dfm
, this function makes out-of-sample forecasts based on a dynamic factor model. The difference is in the way dynamic factors are extracted. The maeforecast.dfm2
function first implements a clustering process to the covariate time series based on the partitional method, and one dynamic factor is then extracted within each cluster either based on the two-step method proposed by Doz, Gianone & Reichlin (2011) or by aggregation.
1 2 3 | maeforecast.dfm2(data, w_size, window="recursive", y.index=1,
factor.num=3, method="two-step", clustor.type="partitional",
h=0, t.select, t.update=F)
|
data |
a data frame or a matrix; the first column should contain the time series variable for which the forecasts are to be made. Other columns should contain the covariates. |
w_size |
numeric, indicating the index where the forecasting should begin. If the first point forecast should be made at the 73th observation, for example, |
window |
character, indicating the forecasting scheme to be applied. Options include |
y.index |
numeric, indicating the column position of the time series for which the forecasts are made (Y). Defualt is |
t.select |
number of covariates to be included. If omitted, every covariate will be included. Otherwise, a regression between the dependant variable, its lag and each covariate will be run and a statistical test will be applied for the significance of the covariate's coefficient. The covariates will then be ranked based on their test statistics, and |
t.update |
logical, indicating wheter the preselection process should be repeated in evert iteration, if |
h |
forecasting horizon. Default is |
factor.num |
numeric, indicating the number of dynamic factors to be extracted from the covariates in the Dynamic Factor Model. Default is |
method |
character, indicating which method should be used to extract dynamic factors. If |
clustyor.type |
the type of clustering method to be applied. Options include |
Forecasts |
data matrix, containing the point forecasts, realized values, forecast errors, signs of the forecasts and realized values, and success in predicting the signs. |
MSE |
numeric, mean squred error of the point forecasts. |
SRatio |
numeric, success ratio of the point forecasts. Success is claimed when the point forecasts and realized values have the same sign. |
Data |
the data as used in the model. |
Model |
some specifics about the model used. |
Zehua Wu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.