I have county-wise annual data on windspeed. Now I want to count how many events (an event is defined as when a county faces windspeed > 25m/s for that year) are experienced by each county, for each year.
I am trying to get something like this:
by fips (year), sort: gen Num_of_Hurr = count(vmax_sust>25)
Where ideally the new variable will return the number of events experienced by each county for each year.
I am trying to get something like this:
by fips (year), sort: gen Num_of_Hurr = count(vmax_sust>25)
Where ideally the new variable will return the number of events experienced by each county for each year.
Comment