Hi I am working with a panel data set for 300 districts from 1959 to 1999 using Stata 13. I have got normal and maximum daily temperature data. I am trying to identify the days on which the maximum temperature of a district exceeded the normal temperature for three on more consecutive days. Specifically, I need to generate a variable which takes the value 1 if the maximum temperature exceeds the normal for three or more consecutive days and 0 otherwise? I have downloaded Speaking Stata: Identifying Spells by Nicholas J Cox but am still unclear how to generate the variable. Any help will be appreciated
-
Login or Register
- Log in with
Comment