I am creating a long-run average of crime rates disaggregated which are reported at the district-month level for the years 2000-2010. I sum the number of crimes per month for all months for each municipality and divide by the number of months in the time interval using the following code where count is the monthly number:
Code:
bysort districtid : egen countsum = total(count) gen lr_av=countsum/132
Code:
reghdfe dv count lr_av count*lr_av, cluster(districtid) a(districtid state##yearmonth)
Thanks.
0 Response to Collinearity with long-run average
Post a Comment