Description Usage Format Note Source See Also
This directory contains the data for FiveThirtyEight's partisan lean, which is used in our [House] https://projects.fivethirtyeight.com/2018-midterm-election-forecast/house [Senate] https://projects.fivethirtyeight.com/2018-midterm-election-forecast/senate and [Governor] https://projects.fivethirtyeight.com/2018-midterm-election-forecast/governor/ forecasts.
1 |
A dataset with 50 rows representing states and 3 variables
the state
the party of the vote
the Cook Partisan Voting Index of the vote
The original dataset only has 2 columns: "state" and "pvi_538". I separated the "pvi_538" columns into two. For example, in row 1 of the dataset, the original "pvi_538" = "R+27", and I separated it into “pvi_party" = "R" and "pvi_amount" = "27".
Partisan lean is the average difference between how a state or district votes and how the country votes overall, with 2016 presidential election results weighted 50 percent, 2012 presidential election results weighted 25 percent and results from elections for the state legislature weighted 25 percent.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.