Hello ,
For my analysis I have total violent crimes at the district level.This is my independent variable (x)
I want to find out whether there is sufficient variation to run an FE model.
How do I get with in variation (over years) and between variation, to look at separately?
distid is the unique district identifier.
For my analysis I have total violent crimes at the district level.This is my independent variable (x)
I want to find out whether there is sufficient variation to run an FE model.
How do I get with in variation (over years) and between variation, to look at separately?
distid is the unique district identifier.
Code:
Code:* Example generated by -dataex-. To install: ssc install dataex clear input float distid int(vc_body_out year) byte(State_code_census Dist_code_census) 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 477 268 2007 28 1 end
Comment