- Create a variable that takes the value of 1 if tn and 0 if a southern state
- Here is a list of codes of states to FIPS codes. https://transition.fcc.gov/oet/info/maps/census/fips/fips.txt
- Many ways of creating the graph, but using collapse may be the easiest way when using BRFSS. In other cases you wonβt need to use collapse
- Pay attention to the labels, legends, axis-titles of the sample graph
- If you want to add vertical lines to identify the timing of the reform, you can do so through the option
xline
, for examplexline(2005
) while using thetwoway
graph command - If you want to account for weights you have to put
[aw=_finalwt]
at some point of your command. For example, in the collapse command it would be like this
collapse (mean) var1 var2 [aw=_finalwt], by(var3 var4)
In a regression
reg y x [aw=_finalwt]