Hi,
I also used your code to create quarterly dates. But my issue to create a quarterly dummy variable with quarterly date is still a topic. I am doing a panel regression using a DiD approach. My event is the CSPP announcement by the ECB. I need to create a dummy variable that is equals 1 after the CSPP announcement, i.e., after Q1 2016.
So far I tried this:
gen post = quarterly_date2 >= qofd("2016q2").
My quarterly_date2 has the storage type int and the format %tq. I tried another options, but I always receive the "type mismatch" information.
So using your suggested code from above, how can I now create a dummy variable? I would really appreciate your help with this!
I also used your code to create quarterly dates. But my issue to create a quarterly dummy variable with quarterly date is still a topic. I am doing a panel regression using a DiD approach. My event is the CSPP announcement by the ECB. I need to create a dummy variable that is equals 1 after the CSPP announcement, i.e., after Q1 2016.
So far I tried this:
gen post = quarterly_date2 >= qofd("2016q2").
My quarterly_date2 has the storage type int and the format %tq. I tried another options, but I always receive the "type mismatch" information.
So using your suggested code from above, how can I now create a dummy variable? I would really appreciate your help with this!
Comment