What is the effect of having a pro-gun-control stance on Democratic two-party vote share when running for office in Texas?
Whether the candidate supports progressive gun control measures
- Whether the candidate is male
- Whether the candidate is Hispanic
- Whether the office was held by a Democratic incumbent
- Whether the candidate supports a progressive minimum wage policy
- Office, County, district, and year fixed effects
- 2016 House and Presidential elections
- 2014 House and Senate elections
This repository makes use of Python 3.6, the package beautifulsoup4, and R. If any of the Jupyter notebooks do not load correctly please enter the link for the notebook here.
-
sec_final_project.R
- Final models and output -
final_data_for_model_1.csv
- Information for the 2016 and 2014 house, senate, and presidential election along with controls -
Science of Elections Writeup.pdf
- Discussion of the methods, reasoning, models, and results used in this analysis. -
put_data_together.ipynb
- Used to data from all the years and elections with control factors. -
county_scraper.ipynb
- Data collected on districts in each county -
prelim_models.ipynb
- Initial data collection and analysis