Hello,
I am trying to run a series of commands in a time series setting, and
interested in using variable time intervals (variable time windows, or
variable start/end dates). So ideally, I would like to loop with
-foreach- over a series of dates, but I cannot find the way of doing
this. To give you an idea of the kind of problem, here it is in
pseudo-code (not working):
*** begin pseudo-code
foreach t in 1992q1/2000q4 {
reg y L.y L.x if tin(1960q1, `t')
reg y L.y L.x if tin(`=`t'-20', `t')
}
*** end pseudo-code
I am sorry if this is a trivial question, but I really could not find
a way of performing this. Thanks for any hints.
AC
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/