SHAZAM Questions and Answers (Q&A) - RSS feedhttp://community.econometrics.com/questions/SHAZAM Econometrics, Statistics and Analytics Communityen<font color="white">Copyright <b>SHAZAM Analytics, 2018</b></font>Sat, 12 Mar 2011 09:03:23 +0000How do you create a moving window with a constant width?http://community.econometrics.com/question/191/how-do-you-create-a-moving-window-with-a-constant-width/**A SHAZAM User asked:**
I wonder whether it is possible to do a series of estimations in SHAZAM in the following way (an example describes the problem).
Example: Let say you have a total of 40 observations, and want to use a MOVING SUB-SAMPLE with a fixed size (moving window with constant width), let say 20 observations, in each estimation.
The first sample includes observation 1 to 20. The next sub-sample consists of observation 2 to 21, the third from 3 to 22 etc., and the last includes observation 20 to 40. Then you can do 20 regressions by using this moving window of fix sample size. Is it possible to do this kind of estimation without doing 20 separate regressions manually 20-times?
And output: Is it possible to store (save) the estimated 20 coefficients in a file, and to print them?
Let say you want to estimate an AR(1)-model: y(t+1) = constant +
(coefficient)y(t) + residual(t), and you want a file with two columns which stores 20 estimated constants and coefficients.
It is of great help if you could look at the problem. I look forward to hearing from you.
SHAZAMHelpSat, 12 Mar 2011 09:03:23 +0000http://community.econometrics.com/question/191/