Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Making a time-band in dummy variables

    Hi, I am relatively new to stata. I have a question on how to make a time-band for dummy variable. So, i have a monthly data on currency crisis and it's a dummy variable (it's 1 if crisis occurs on that month). However, I want to set the value as 1 from t-6 until t+6 of the crisis month to get rid of the ambiguity of start and end period of the crisis. Can someone help me with this issue?

    Many thanks in advance!

  • #2
    Present a data example using dataex. For example, you can run the following and copy and paste the resulting output.

    Code:
    ssc install dataex
    dataex in 1/36

    Comment

    Working...
    X