mpiktas / midasr

R package for mixed frequency time series data analysis.
http://mpiktas.github.io/midasr/
Other
73 stars 34 forks source link

How to deal with Monthly data with Daily regressors? #59

Closed jaychen888 closed 6 years ago

jaychen888 commented 6 years ago

Hi, There.

Unlike weekly or monthly data usually have a fixed 'm' as 7, or 12, the daily data can be influenced by workday and holidays. I've now been facing with a problem that I have to make monthly data such as PMIs as the dependent variate, and, a daily based data such as trading price as the independent variates. How do I resample the daily variables in order to use the MIDAS regression function?

vzemlys commented 6 years ago

Employ fixed m structure. The idea is that for a MIDAS model you only care about influence of fixed number of days on to monthly structure. There is no benefit in applying different midas lag function for different months based on the number of days.

jaychen888 commented 6 years ago

Thank you, sir. Then I am assuming a 21 for m to try. My consideration focuse on normal working days a year in general. Based on 365 days, there are 116 days which are either weekend or holidays in China. And average month will have 21 working days. I then resample the high frequency daily data from the most recent day back to the very original day. And I think it is reasonable then to forecast the next one month ahead.

vzemlys commented 6 years ago

Yes, your reasoning sounds fine.