Closed MSkred closed 4 years ago
Hi I am facing a similar issue - also I am trying to understand the mls(x,k,m) function that you defined here - shouldn't your m = 12 in case of monthly data?
m is the frequency ratio, if y is yearly and x is monthly then it is 12, if y is quarterly and x is monthly then it is 3
What if Y is monthly and X is weekly then it is 14/3 or NA?
m can only be integer in mls. For aligning data which has non-integer frequency ratio, use function mlsd, which aligns based on date.
Hello!
I am trying to fit an unrestricted MIDAS model to quarterly data (y) with monthly data (x1, x2,... x34). However, when I run this code I get the following error message :
I tried with the function midas_u and it works but I only have coefficient for some variables. Moreover, I need to use midas_r because I am interested in the rmse of U-MIDAS in a recursive out-of-sample forecast (and hence need to use the average_forecast function). Note that I have 56 observations for y but using only 36 in the model. Any help on this issue is more than welcomed!
@vzemlys