I have data on volunteer hours from 2010-2015 and I am looking at how the Medicaid expansion that took effect in 2014 has affected volunteer hours. I would like to know what codes to use in Stata to do a difference in difference regression on the states that have expanded in 2014 vs the ones that haven't with population as a control variable. My teacher told me to use state and year fixed effect regression which I don't know how to do and can't figure out at the moment. This is just a sample of what my data looks like, I have it for all of the sates. Any guidance on how to proceed would be helpful.
State | Year | Volunteer Hrs | Population | Treat=1 |
Alabama | 2010 | 106.88593 | 4785579 | 0 |
Alabama | 2011 | 100.810044 | 4798649 | 0 |
Alabama | 2012 | 102.936671 | 4813946 | 0 |
Alabama | 2013 | 116.417864 | 4827660 | 0 |
Alabama | 2014 | 125.985802 | 4840037 | 0 |
Alabama | 2015 | 98.70755 | 4850858 | 0 |
Florida | 2010 | 434.844492 | 18846461 | 0 |
Florida | 2011 | 458.679654 | 19097369 | 0 |
Florida | 2012 | 475.948588 | 19341327 | 0 |
Florida | 2013 | 438.743281 | 19584927 | 0 |
Florida | 2014 | 495.717974 | 19897747 | 0 |
Florida | 2015 | 444.646822 | 20268567 | 0 |
Arkansas | 2010 | 53.0621463 | 2921737 | 0 |
Arkansas | 2011 | 59.2638898 | 2938640 | 0 |
Arkansas | 2012 | 45.6552647 | 2949208 | 0 |
Arkansas | 2013 | 55.5923406 | 2956780 | 0 |
Arkansas | 2014 | 59.0693401 | 2964800 | 1 |
Arkansas | 2015 | 48.5332943 | 2975626 | 1 |
Colorado | 2010 | 163.956951 | 5048029 | 0 |
Colorado | 2011 | 144.91652 | 5116411 | 0 |
Colorado | 2012 | 160.310765 | 5186330 | 0 |
Colorado | 2013 | 122.830502 | 5262556 | 0 |
Colorado | 2014 | 159.511402 | 5342311 | 1 |
Colorado | 2015 | 148.322003 | 5440445 | 1 |
Comment