-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for negative lags in mls function #30
Comments
As of today it is still not straight forward to to fit models with leads, right? (I'm thinking of the MIDAS with leads equation of the paper accompanying this package). A workaround I found to do that could be the following just using lags and reinterpreting the information: For example, assuming x is the high frequency variable and that it has frequency m = 3. If just two leads are available, so J = 2, then
or
However, this implementation, necessarily drops degrees of freedom because it has to compute lags first (and that means dropping observations in the beginning of the sample) that can be reinterpreted as leads. Is there some other workaround or trick to generate actual leads yet? |
The way midasr works it is possible to fit any MIDAS model, with the caveat that some of the models might require more data rearrangement. Concerning MIDAS with leads in JSS paper (5th formula in section 2.6 in page 12) the specification would be the following
Here is the example (the data comes from
This fits the model where we try to forecast the yearly variable given the first 6 months of monthly data. Given the year t the model fits the year t+1 on years t and t-1 for variable y, first 6 months of the year t for x variable, and full months for years t, t-1 for the x variable. You can check that this is the case by inspecting Since the variable x is split in two terms in this model, I would advise to rename one of the terms, so that the coefficient names are unique, i.e. the following works too:
|
Hallo, I have a related question here concerning the intra-period forecast. In the JSS article (pp 24) you explained two ways to use the estimated MIDAS model for forecasting. However, one might have only a partial set of these intra-period observations. Have only one additional month. Thanks and sorry for the long post. Thanks |
Would be helpful to form forecasting models of the type
mls(y,-1,1)~y+fmls(x,11,12,nealmon)
The text was updated successfully, but these errors were encountered: