About loop problem
Posted: Fri Aug 16, 2013 8:15 am
I'm trying to use rats to forecast, i write some codes, but it seems the loop does't work,
I want to forecast volatility, use 500 observations to initialize the model, and use the rest of observations(3408) for evaluation, the estimation window of 500 observations is rolled forward daily, and my forecast horizon is 1,5,20,60,120 and 240 days , for example, (tau1 =1, tau2=5), (tau1=41, tau2 =60), but the results seems like i only forecast the volatility of (1,20), (41,60),(101,120),(221,240), and the rest of my forecast horizon is NA, could someone check the code for me? many thanks in advance!
I want to forecast volatility, use 500 observations to initialize the model, and use the rest of observations(3408) for evaluation, the estimation window of 500 observations is rolled forward daily, and my forecast horizon is 1,5,20,60,120 and 240 days , for example, (tau1 =1, tau2=5), (tau1=41, tau2 =60), but the results seems like i only forecast the volatility of (1,20), (41,60),(101,120),(221,240), and the rest of my forecast horizon is NA, could someone check the code for me? many thanks in advance!