Clinton’s gun-control positions also appear to have hurt her among voters who flipped from Obama in 2012 to Trump four years later. Demos analyst Sean McElwee constructed an index of views on gun policy. Using data from the Cooperative Congressional Election Study, he created a logistical model to predict Obama-to-Trump voting, controlling for race, religion, political party, education, gender, racial attitudes, ideology, and age. Views on guns turned out to be a statistically significant predictor of former Obama voters switching to Trump.