Hi
I have a dataset (time series) that includes all calendar dates "date" and Fed meeting dates "federal_date". federal_date represents the date of specific irregular events that take place throughout the year.
The dates are Stata dates of the format "11jan1972, 12jan192, etc.
I want to create a WINDOW dummy variable that is equal to 1 for a window before the deferal_date.
The WINDOW will begin at the start of the second Saturday before the federal_date. For example, if the federal_date is on a Tuesday, the WINDOW will begin at the start of the Saturday that falls ten days earlier and ends the day before the federal_date.
Note that the federal_date (i.e., the meeting) can happen on any weekday.
Can someone help with this, please?
Thank you
Lisa
I have a dataset (time series) that includes all calendar dates "date" and Fed meeting dates "federal_date". federal_date represents the date of specific irregular events that take place throughout the year.
The dates are Stata dates of the format "11jan1972, 12jan192, etc.
I want to create a WINDOW dummy variable that is equal to 1 for a window before the deferal_date.
The WINDOW will begin at the start of the second Saturday before the federal_date. For example, if the federal_date is on a Tuesday, the WINDOW will begin at the start of the Saturday that falls ten days earlier and ends the day before the federal_date.
Note that the federal_date (i.e., the meeting) can happen on any weekday.
Can someone help with this, please?
Thank you
Lisa

Comment