This is the MEDSL repository for election returns from the 2022 General Election in the United States. We have finished compiling precinct-level election results from every state, but a few counties have not reported precinct-level results, and a few variable values may still need to be fully validated and corrected. If you notice any issues in our results, please do open an Issue in this repository.
For any questions about how we clean and Quality Assure these data, and how accurate they are, please consult this paper, which answers those questions for our last three data efforts (2016, 2018, and 2020): https://www.nature.com/articles/s41597-022-01745-0. We ask that when you are using the data, please cite the dataset itself, and only cite that paper for discussions of how the data were created and why they are reliable.
- As noted below, numerous counties did not report precinct-level data in Indiana, and one did not report in Arkansas.
- In general, users need to exercise real caution when computing descriptive statistics. Please make sure you understand exactly which rows belong in the computation you're performing. Here are two of the most common issues:
- Sometimes the way that states report data generates fictitious zero-vote rows, where a candidate is recorded as getting no votes in a precinct where they did not actually appear on the ballot. It is not generally possible to ensure that all real zero-vote totals are recorded while no fictitious zero-vote totals are recorded. This could affect, for example, measures of central tendency.
- We typically retain exactly the modes that states report. This can lead to double-counting if users do not select the correct modes, for example if modes are split apart and a mode value of
TOTAL
is included. Users should make sure that any analysis includes votes of each mode once.
- While we attempt to verify every value of every variable,
magnitude
values in particular may be approximate for local-level offices. Please double-check these values before relying on them. We are also still working to make sure that theNONPARTISAN
value of the party fields is propagated correctly to local offices.
Added: 2022-12-29.
Source: State government, https://www.sos.alabama.gov/alabama-votes/voter/election-data
Added: 2023-01-18.
Source: State government, https://www.elections.alaska.gov/election-results/e/?id=22genr
Notes:
-
The 2022 election in Alaska was held using a modified form of Instant Runoff Voting, with a single-vote plurality contest followed by a second round in which four candidates compete under an Instant Runoff ruleset. Our dataset contains the data that have so far been made available from the Alaskan state government (as of the timestamp above); on their election result webpage, they explain that their precinct-level file "only shows 1st Choice results from Round 1." However, this appears to refer not to the vote counts generated by the initial single-vote plurality contest, but rather the number of first-place rankings that each candidate received in the second round (so, these are the vote counts in the Instant Runoff contest before any redistribution of votes).
-
Questioned ballots are reported separately -- the meaning of these rows is explained here: http://web.archive.org/save/https://www.elections.alaska.gov/Core/votingatthepollsonelectionday.php. We retain this distinction by setting the
mode
field to the valueQUESTION
for these votes. -
Small discrepancies (substantially less than 1%) are present between the precinct-level US House race and the announced statewide vote totals in the state's "RCV Detailed Report", which may be due to unresolved write-in votes. The other statewide races, however, match the announced statewide totals exactly.
Added: 2023-06-12.
Source: OpenElections, https://github.com/openelections/openelections-data-az/tree/master/2022
Notes:
- Four rows are duplicated up to vote totals. There is not enough information in the original datasets to distinguish them. We suspect the difference is not vote mode. The accuracy of the aggregate vote checks suggests that these are all real vote totals but with distinguishing information missing.
- Vote totals from election recounts are denoted with the
stage
valueGEN RECOUNT
, meaning a general election recount.
Added: 2023-05-05. One county missing.
Source: OpenElections, https://github.com/openelections/openelections-data-ar/tree/master/2022
Warning: Phillips County was not able to compile precinct-level election results for 2022. Our data include every other county, but based on conversations with the Phillips County elections office, we do not anticipate that precinct-level results from the 2022 election in that county will be made available.
Added: 2023-06-12.
Last modified: 2023-07-28.
Source: State government, https://statewidedatabase.org/d20/g22.html
Notes:
- The aggregate vote totals are exactly correct or within a few percentage points for every
US SENATE
,GOVERNOR
, andUS HOUSE
candidate. - The precinct IDs in our dataset are formed by concatenating the precinct number, then an underscore, then (all zero-padded) the ADDIST (assembly district), CDDIST (congressional district), SDDIST (senate district), and bedist (board of equalization district). These variable definitions are taken from here: https://statewidedatabase.org/info/metadata/precinct_data.html
- The statewide database represents vote mode as a semi-standardized substring of a geographic ID: Absentee vote precincts have an
A
at the end of one of the IDs which we use to construct the precinct ID. However, crucially, it is possible for that ID to end in anA
without being an absentee precinct; it may just have an ID that happens to have anA
in its final index. Our approach is to check for cases where a precinct ends in an A, and then there's also a variant of that precinct which does not end in an A, or alternatively, a precinct ends in AA and there is also an entry where the precinct ID is the same but ending only in one A. In either of those two cases, the precinct that has one more A on the end contains absentee votes, and the other contains non-absentee votes. In these cases we drop the final A from the absentee precinct so that the precinct IDs match, and we assignmode
values accordingly. On the other hand, for any precinct ID which is not a member of such a pair, we take the votes to represent total votes. So if for example there is a precinct that ends in an A and there is no precinct in the data with the same ID but ending in one less A, then there is not enough information in the dataset to know whether this is a precinct that only reported absentee votes, or a precinct that did not report votes by mode and simply happens to have a name which ends in an A. In those cases we assume the vote total is the total number of votes in that precinct by any mode. There are two checks which reassure us that our approach basically works. First, incorrectly combining votes to have the same mode and the same precinct ID would create duplicated rows or rows which are duplicated up to vote totals, but the dataset does not contain any. Second, when we check precincts that have only one vote mode, we do not see any case that shows signs of binning incorrectly non-absentee and absentee votes into both being absentee votes. We also see very few precincts where we only report absentee votes, which suggests that we aren't actually dropping 'A's that should be there and thinking they mean 'absentee' when they're just part of the precinct identifier, with perhaps some very few exceptions. We should acknowledge, though, that these are imperfect checks on a band-aid solution to an ambiguity which is baked into the original dataset. Users would do well to double-check the face validity of any mode values they use from this state.
Added: 2023-04-19.
Source: State government, https://portal.ct.gov/SOTS/Election-Services/Statement-Of-Vote-PDFs/General-Elections-Statement-of-Vote-1922
Added: 2023-04-20.
Source: OpenElections, https://github.com/openelections/openelections-data-co/tree/master/2022
Added: 2023-03-31.
Source: State government, https://elections.delaware.gov/results/html/index.shtml?electionId=GE2022#electionReport3
Added: 2022-12-27.
Source: City government, https://electionresults.dcboe.org/election_results/2022-General-Election
Added: 2023-03-03.
Source: State government, https://dos.myflorida.com/elections/data-statistics/elections-data/precinct-level-election-results/
Notes:
- The precinct field is formed as follows:
precinctCode_pollingPlaceName
. For ease of use, we follow this convention even when one of those values is empty, or when one of those values is included in (or equal to) the other one.
Added: 2023-02-15.
Source: State government, https://results.enr.clarityelections.com/GA/115465/web.307039/#/reporting
Added: 2023-01-26.
Last modified: 2023-08-29.
Source: State government, https://elections.hawaii.gov/election-results/
Added: 2023-02-08.
Source: State government, https://sos.idaho.gov/elections-division/election-results/
Notes:
-
The data were released by the state in spreadsheets with baroque semi-structured designs, so we wrote a custom script to parse those spreadsheets. While we are not aware of any outstanding errors produced by this process, users should be aware that the re-structuring process was substantially involved for this state, and that some information about office descriptions may have been implicitly encoded visually rather than being written out explicitly, and consequently would not have been capturable by an automated parser.
-
Rows labeled 'PERCENT' are nearly always -- but not quite always -- between 0 and 1. This suggests that they are usually proportions, not percentages. We have not altered the values or the labels.
-
Some contests in Power County are missing precinct-level vote counts due to what appears to be a data type error in the Excel files provided by the state.
-
The raw data reports some precincts multiple times for the office COLLEGE OF WESTERN IDAHO TRUSTEE, but with different vote totals. We retain these rows, though this practice causes nearly duplicated rows which are identical up to vote totals (and in, one case, a coincidental exact duplicate), since they presumably refer to different precincts but using non-unique identifiers.
-
Many different types of meta-information at different levels of aggregation are reported in the raw data under the label 'VOTING STATISTICS'. Where this information is exactly duplicated, we have dropped it. But in the many cases where the information represents different vote totals under the same label without explicit disambiguation in the raw data, we leave it as is.
Added: 2023-04-25.
Source: State government, https://www.elections.il.gov/electionoperations/ElectionVoteTotalsPrecinct.aspx?ID=MVJQPFIDZQo%3d
Notes:
- Counties in Illinois did not consistently identify the parties of candidates for office. This affected our data in two ways:
- Candidates who did not have official party endorsements were often labeled as
NONPARTISAN
, even if they were contesting a partisan election, including races likeUS HOUSE
andGOVERNOR
. For those federal and statewide offices, we manually ensured that all candidates were labeled asINDEPENDENT
rather thanNONPARTISAN
. One consequence is that write-in candidates may have a fictitious party label of independent. Another consequence is that we did not manually adjust the party label for races at lower levels, which would have required identifying every partisan office. So, for sub-state elections in Illinois, do not take labels ofNONPARTISAN
to necessarily mean that the entire office had no party labels for any candidates, even though that is the meaning of that variable value in the rest of our precinct data outputs. - Party labels were missing for many candidates in many counties. When counties did not report party labels of candidates for federal or statewide offices, we manually applied the correct labels, so that party labels should all be correct in particular for
US HOUSE
andGOVERNOR
. However, we did not manually apply party labels to every candidate in the state. So, please exercise caution when attempting to aggregate or compare votes by party: beware of missing party labels in sub-state contests.
- Candidates who did not have official party endorsements were often labeled as
Added: 2022-12-15. Numerous counties missing.
Source: County governments, https://enr.indianavoters.in.gov/site/index.html
Notes:
-
Only 36 of Indiana's 92 counties released precinct-level election results in 2022. In 2020, only 56 counties ultimately released precinct-level results. We do not expect full 2022 precinct-level results from Indiana.
-
We cannot conduct our usual county-level vote aggregation check in this state because counties reported at either the precinct level or the county level, so the two levels of vote totals cannot be compared. So if you do want to use these data, we caution that results are systematically missing. Please carefully check the accuracy of any data you use from this state.
Added: 2023-02-14.
Source: OpenElections, https://github.com/openelections/openelections-data-ia/tree/master/2022
Notes:
- The sum of precinct-level votes differed from the announced constituency-level vote totals by well under 1% in the races for governor and US House districts 2, 3, and 4. The totals were off by about 1% in US House district 1. However, all totals matched exactly in the Us Senate race.
Added: 2023-01-26.
Source: State government, https://sos.ks.gov/elections/elections-results.html
Added: 2023-03-22.
Source: State government, https://elect.ky.gov/results/2020-2029/Pages/2022.aspx
Notes:
- Kentucky does not explicitly identify writein candidates, and it reports a large number of write-in candidates by name. This means that it is not clear which candidates were writeins in very local elections. Some candidates without a party label (that is, a blank value of
party_detailed
, as opposed to aparty_detailed
value ofINDEPENDENT
) may be write-in candidates, but candidates in nonpartisan elections will also have blank party labels.
Added: 2023-02-01.
Source: State government, https://voterportal.sos.la.gov/static/2022-11-08
Added: 2023-03-02.
Source: State government, https://www.maine.gov/sos/cec/elec/results/2022/2022GeneralElectionNonRankedChoiceOffices.html and https://www.maine.gov/sos/cec/elec/results/2022/2022GeneralElectionRankedChoiceOffices.html
Notes:
- Because of the structure of election administration in Maine, these data are available at the level of towns rather than precinct-level.
- The county FIPS codes correspond to the literal counties, but jurisdiction FIPS codes represent the FIPS of the administering body. In nearly every case we were able to match the name of the town as provided in the election result data to the name of a town in a list of local government FIPS codes in Maine. In some very few cases we were not able to identify which entity a particular jurisdiction in the election data referred to in the FIPS code crosswalk, and in these cases we simply assigned the row a
jurisdiction_fips
value equal to the FIPS code of the county. - Maine released ranked choice data for one of their two US House races, in which Maine uses Instant Runoff Voting. In the district for which the government released ranked data, our vote total column specifies the number of people who ranked each candidate in the first position on their ranked ballot
- 15 rows are duplicated up to vote totals. These near-duplicates are present in the raw data, and they remain near-duplicates in our dataset because disambiguating information is not available.
Added: 2022-12-31.
Source: State government, https://www.elections.maryland.gov/elections/2022/election_data/index.html
Notes:
- Maryland reported results separately from its "Mail-in Ballot 1 Canvass", which was held on November 10, 2022, and its "Mail-in Ballot 2 Canvass", which was held on November 18, 2022. Our dataset retains this distinction.
Added: 2023-04-24.
Source: State government, provided to us by email.
Added: 2023-03-17
Source: OpenElections, https://github.com/openelections/openelections-data-mi/tree/master/2022
- The major party candidates' vote totals in the Governor and US House races are all within 1% of their state- or district-wide totals except in district 8, where a few thousand votes are missing for both parties.
- There are substantial rows that are duplicated, or duplicated up to vote totals. These are cases where distinguishing information was not available for different precincts. It should be assumed that these refer to different precincts, but without distinguishing precinct names we do not know which precinct is which. For this reason users should be wary of aggregating data by precinct name, since that may combine different precincts which are not disambiguated in the raw data.
- Some candidates were reported as recieving both write-in votes and non-write-in votes. We retain this distinction.
- There are a small number of rows of straight party votes where different parties were reported in the candidate and party columns.
Added: 2023-01-13.
Last modified: 2023-01-27.
Source: State government, https://electionresults.sos.state.mn.us/Select/MediaFiles/Index?ersElectionId=149
Added: 2023-06-12.
Updated: 2023-09-15.
Source: OpenElections, https://github.com/openelections/openelections-data-ms/tree/master/2022
Notes:
- In Hinds county precinct 16, two different write-in vote totals are reported for the
US HOUSE
district 2 election, one receiving 10 votes and the other receiving 1 vote. We leave them separate in case there is an underlying distinction between these two write-in vote totals.
Added: 2023-04-29.
Source: State government, provided to us by email.
Notes:
- The state provides a precinct code as well as a natural language precinct name. Our
precinct
variable is constructed asprecinct code_precinct name
. - Some vote totals differ from the district-wide vote totals. Our data agree with the raw data provided by the state, who note and explain the sources of any disagreements, largely to do with awaiting provisional ballots or irresolvable clerical errors.
Added: 2022-12-07.
Source: State government, https://electionresults.mt.gov/ResultsList.aspx
Added: 2023-05-05.
Source: State government, https://electionresults.nebraska.gov/resultsCTY.aspx?type=SW&rid=11779&osn=105&map=CTY
Notes:
-
We assign Nebraska's nonpartisan unicameral body the office value
STATE SENATE
. We also assign itparty_detailed
andparty_simplified
values ofNONPARTISAN
, even though candidates typically receive party endorsements, because parties are not recognized in that chamber. -
Party labels were not included in the raw data. We manually ensured that candidates have party labels in all contests for state or federal office. Due to the volume of local offices available, however, we assumed that all such offices are nonpartisan (an assumption reinforced by spot checking) and did not manually assign parties for local offices. So, when using the party labels for local elections in this state, we suggest double checking that any substate offices you include are indeed nonpartisan.
Added: 2023-03-23.
Source: All non-ballot questions are from OpenElections, openelections: https://github.com/openelections/openelections-data-nv/blob/master/2022/20221108__nv__general__precinct.csv . The ballot questions are from the state government, https://www.nvsos.gov/sos/elections/election-information/precinct-level-results .
Notes:
- Per the Nevada Secretary of State, "
*
in the Votes column indicates low turnout and is hidden to protect voter privacy." We retain these suppressed rows. - Nevada uses the notation
NPP
to mean "No Political Party". Of the 3 candidates listed under this label, 2 are described elsewhere as independents, and 1 as the "nonpartisan option". - JANICE M RIDONDO and KATHLEEN V ANCHO both ran for 2 offices.
Added: 2023-02-01.
Source: State government, https://www.sos.nh.gov/elections/elections/election-results/2022-election-results-0/2022-general-election-results
Notes:
-
State House district numbers are unique only up to county name, so to obtain statewide unique state house district numbers, concatenate them with the county name.
-
Candidates' full names were not listed in official results for many races, and we did not alter the candidate names in these cases. In particular, New Hampshire does not provide candidate last names for most races. As such, when handling candidates, one will need to concatenate the district, office, and county to individuate between candidates who share a last name.
-
Some standardization was required to ensure that the same precinct is always referred to by the same name. New Hampshire's official results inconsistenly abbreviated precinct names, so all abbreviated precinct names were unabbreviated. The official results also occasionally left off the apostrophe for the precinct "SARGENT'S PURCHASE". In the cases where it was missing, it was manually added.
-
Rockingham county lists 7 votes as having been received for the state house race in its 26th district without listing which candidate recieved those votes. Based on the general format, this was manually changed to be
SCATTER
in our cleaned dataset. -
Two races had multiple recounts. To distinguish this, the second recount is referred to is labeled as "GEN RECOUNT 2".
Added: 2023-03-01.
Source: State government, https://www.state.nj.us/state/elections/election-information-2022.shtml
Notes:
-
The state of New Jersey does not collect and distribute precinct-level election results, so we instead provide results at the township level. In 2022, these are available only for state or federal offices. Because New Jersey elects its state legislators in odd-numbered years, in 2022 the only state or federal elections were for the US House, and one special election each to their upper and lower legislative chambers.
-
We mark the magnitude as 1 in all races because, even though New Jersey's lower legislative chamber does use multi-member districts, the special election in this dataset elected only one candidate.
-
In counties where Federal ballots are reported, we label the other modes 'NON-FEDERAL', under the assumption that they contain everything except federal overseas ballots.
Added: 2023-01-11.
Source: State government, https://electionresults.sos.state.nm.us/ and https://candidateportal.servis.sos.state.nm.us/CandidateList.aspx?eid=2838&cty=99
Added: 2023-06-06.
Source: OpenElections, https://github.com/openelections/openelections-data-ny/tree/master/2022
Notes:
-
New York's election result reporting contains unexplained discrepancies between the sum of precinct-level vote counts and the candidate-party total vote counts across their whole electoral district. The results for this state should be used with caution and cross-checked carefully against the raw data sources. In the
US SENATE
andGOVERNOR
races these discrepancies are fairly minor: they are roughly on the order of about 1% or less of the candidate-party level vote total. Many vote totals forUS HOUSE
candidates are also exactly correct. However, a handful of districts have vote totals that are larger or smaller than the correct amount by single digit percentages. One known cause of these issues is that total votes were reported alongside vote counts by mode without consistent disambiguation across counties. To handle this at scale, we identified the counties where this issue occurred, and then assigned the maximum vote total for each candidate-office-precinct combination (or else the only one for which no specific mode was provided) themode
valueTOTAL
. The medicine was slightly too strong, since the double-counting is often not exact; in particular, if not every mode is reported, then theTOTAL
votes will be slightly larger than the votes by mode, and droppingTOTAL
votes will lose some votes that were not reported by mode. However, this solution is more correct than not: the band-aid of assuming that votes without specified modes are total votes and not counting them in the aggregate vote totals does bring the sums much closer in line to the candidates' real total votes. For example, after this fix, the candidate-by-candidate vote totals in the governor race became about 2% closer to the real vote totals so that now they are only off by a few tenths or hundredth of a percent. In some counties we also exercised discretion and did not assume that unspecified modes represented total vote counts if they were much smaller than the sum of the other votes by mode. We publish the results despite the non-exact vote totals because this scale of issues is no largar then expected: New York's precinct-level election results had a similar scale of discrepancies in 2020, and very dramatically larger discrepancies in 2018. -
Different counties broke down the votes by mode in different ways. Some might separate out just absentee votes, others might break down election day versus provisional versus absentee versus affidavit, and so on. Whenever the mode was specified, we retain the mode value that OpenElections assigned to the vote total, based on what the county reported. Whenever the mode was not specified, we apply a mode value of
UNSPECIFIED
. Users should therefore be very careful to not assume that, say, theFEDERAL
value is applied to all federal votes. In counties where that value is present, it is reasonable to assume that it is. But in counties where that value is not present, federal ballots will be included in theUNSPECIFIED
mode category. -
New York has fusion tickets, so candidates may have more than one party nomination, and votes are reported separately under each party label.
-
Four rows were duplicated up to vote totals (that is, all of the information is the same in the two rows, but the candidate-precinct combination corresponds to two different vote totals) in the raw data. This usually means that some distinguishing information was not included in the data reporting. In the case of these four rows, we suspect they are intending to refer to two different precincts.
-
PUBLIC COUNTER
is a number reported at the close of a polling station (per the New York poll worker manual). We retain this value in thecandidate
field.
Added: 2023-01-24.
Source: State government, https://www.ncsbe.gov/results-data/election-results/historical-election-results-data
Notes:
- North Carolina reports the names of candidates that were written in. In five cases, there appears to be a candidate name written in whose name seems to be misspelling of the name of a candidate who ran for another office. These likely misspelling cases were not changed. The cases were: SAM TREADWAY and SAM TREADAWAY, TURNER VOTIPKA and TURNER VOTIPIKA, KEISHA SANDIDGE and KESHIA SANDIDGE, NATALIE MURDOCK and NATALIE S MURDOCK, and SHANNON WHITAKER and SHANNON CRAVEN WHITAKER.
Added: 2023-02-23.
Source: State government, https://results.sos.nd.gov/Default.aspx?map=Cty&mode=0
Added: 2022-12-27.
Source: State government, https://results.okelections.us/OKER/?elecDate=20221108
Added: 2023-01-19.
Source: State government, https://www.ohiosos.gov/elections/election-results-and-data/2022-official-election-results/
-
Ohio records its data such that candidates who are not in a statewide election are listed as having recieved 0 votes at every precinct in which they were not selectable (due to running in another district). Keeping all of these candidates results in roughly 2.8 million records, and a nearly half gigabyte file. However, there is no general way to distinguish between candidates who actually received no votes in a precinct where they were selectable, and candidates who received 0 votes in a precinct because they did not appear on any ballots there. So, 0 vote records were dropped manually as follows:
- Records for statewide elections (I.E. Governor, U.S. Senate) were kept, because these are selectable everywhere in the state
- Records for county elections were dropped outside of the relevant county, but kept within the county, regardless of whether or not the precinct was in the correct district
- Records for non-statewide elections (I.E. U.S. House, State House) with 0 votes were dropped
This approach does result in records of candidates actually recieving 0 votes in a precinct in which they were selectable being dropped, but we believe this is preferable to not dropping these rows, because the dataset is unmanageably large when all the fictitious 0-vote rows are included.
-
Ohio does not provide precinct-level vote totals for write-in candidates, but they do provide county-level totals. The cleaned dataset includes records for these county totals with the precinct name "COUNTY FLOATING".
Added: 2023-05-16.
Source: OpenElections, https://github.com/openelections/openelections-data-or/tree/master/2022
Added: 2023-05-15.
Source: State government, https://www.dos.pa.gov/VotingElections/BEST/stats/_layouts/15/formspubs/formsandpubs.aspx
Added: 2023-02-28.
Source: State government, https://www.ri.gov/election/results/2022/general_election/data/
Added: 2023-02-01.
Source: OpenElections, https://github.com/openelections/openelections-data-sc/tree/master/2022
Notes:
- There are duplicated rows, or rows duplicated up to the votes column, all of which are either
FAILSAFE
,PROVISIONAL
, orFAILSAFE PROVISIONAL
ballots, which in the state election reporting were reported using the same label at the county level, but may be split into multiple rows. We retain them as separate rows rather than aggregating them together in the interest of not destroying information. The total number of these ballots within a county is always correct.
Added: 2023-01-15.
Source: State government, https://electionresults.sd.gov/Default.aspx and https://vip.sdsos.gov/candidatelist.aspx?eid=471
Added: 2022-12-25.
Source: State government, https://sos.tn.gov/elections/results
Added: 2023-06-07.
Source: State government, https://data.capitol.texas.gov/dataset/2022_general
Notes:
-
These data are VTD-level data. VTDs are (per the Texas capitol data portal https://data.capitol.texas.gov/dataset/vtds) "the census geographic equivalent of county election precincts [...] created for the purpose of relating 2020 Census population data to election precinct data". When counties in Texas report election results, in contrast, they typically do so using the county-defined voting precincts, which are distinct from VTDs. For an effort to collect election results at the county-defined precincts, please consult OpenElections's work on that problem: openelections/openelections-data-tx#442
-
Only candidates' last names are reported in the raw data. The scale of the data, especially for local offices, prevents us from confidently joining full names onto the reported last names.
-
Very small unexplained discrepancies are observed in some federal races between the sum of a candidate's precinct-level votes and their official total vote count. These differences are always well below 1%.
Added: 2023-06-08.
Source OpenElections, https://github.com/openelections/openelections-data-ut/tree/master/2022
Added: 2023-03-20.
Source: State government, https://sos.vermont.gov/elections/election-info-resources/elections-results-data/
Notes:
-
District values were only available in a separate file that listed the total candidate votes within each district. We therefore matched simply by candidate name, subject to one arbitrary restriction. A major problem is that candidates will commonly be written in by a voter in one district when that candidate is actually contesting a different district. So, we match district labels onto candidate names, and then only overwrite an existing district label when a candidate appears in a(n alphabetically) subsequent district with more than (arbitrarily) 20 votes. We then manually verified that major party nominees in every house and senate district have the correct district label, but of course we cannot guarantee that is the case for minor party or write-in candidates, who will have been assigned incorrect district labels in exactly the case that they or someone with the same name received 20 or more votes in a district that comes later in the alphabet. We are not aware of any such cases, but they may exist. Note also that matching on a combination of candidate name and candidate vote totals would not correct these errors because these are overwhelmingly (if not exclusively) candidates with extremely small vote totals, who may commonly receive (say) 1 vote in multiple localities. The major effect is that names which cannot be disambiguated --
BLANK VOTES
,OVERVOTES
, andUNDERVOTES
especially -- have blank district labels. However, their other geographic information is included. -
Write-in values must be inferred, since the original dataset includes all write-in candidates by name with no information that distinguishes them from other candidates, exactly as though they were not write-in candidates. We generated the write-in field by first matching to a dataset which contained official declared candidates' party labels, then manually ensuring that all major party nominees for partisan offices had party labels, and finally assuming that all other candidates which were not listed in the declared candidates file must be write-in candidates.
-
We drop any row with 0 votes. The cost of doing so is that candidates may sometimes legitimately receive 0 votes in a region in which they could indeed be selected on the ballot. However, we judge that dropping 0 vote rows is more correct than not in this case. The reason is that the raw data are exceptionally sparse: in the cleaned dataset, if we do not drop zero vote rows, the resulting file has more than 3,500,000 rows and takes up 481 MB. Dropping all 0-vote rows shrinks the file by a factor of 100. This must include ample fictitious 0 vote rows, in which candidates were not selectable in a jurisdiction but nevertheless appeared in the election results as receiving no votes there -- and in many cases, write-in candidates who were selectable nowhere, received a vote in one locality, and are recorded as receiving 0 votes everywhere else. There is no way in general to distinguish between legitimate and fictitious 0-vote rows in election result data, so the most correct approach is to drop all such rows.
Added: 2022-12-28.
Source: State government, https://apps.elections.virginia.gov/SBE_CSV/ELECTIONS/ELECTIONRESULTS/2022/
Added: 2023-01-04.
Source: State government, https://results.vote.wa.gov/results/20221108/turnout.html and https://kingcounty.gov/depts/elections/results/2022/202211.aspx
Notes:
- Some pairs of rows in the dataset are identical, but each records real votes for which there is no disambiguating information available. These are all write-in votes for state house candidates. Washington's state house has contests of magnitude 2 for which write-in votes were reported separately for each of the two seats in a district, but without disambiguation, so these will appear to be either exactly duplicated, or duplicated up to the vote count. We retain them as separate rows because to combine them would be to unnecessarily remove information, but for any analysis which requires knowing the total number of write-in votes for an office in a precinct, these rows should be summed.
Added: 2023-02-03.
Source: OpenElections, https://github.com/openelections/openelections-data-wv/tree/master/2022
Added: 2023-06-12.
Source: https://elections.wi.gov/elections/election-results#accordion-5601
Notes:
- Jurisdiction names are not supplied alongside precinct and county names in the original election results, but the precinct names are informative enough to determine which jurisdiction contains that precinct. So, the
jurisdiction_name
field was constructed out of precinct names, initially by extracting substrings from the precinct names using regular expressions, and then matching those jurisdiction names to a dictionary of jurisdiction FIPS codes. This automatic match is necessarily somewhat error-ridden, so thejurisdiction_name
andjurisdiction_fips
values were manually verified and repaired, jurisdiction by jurisdiction.
Added: 2023-01-11.
Source: State government, https://sos.wyo.gov/Elections/Docs/2022/2022GeneralResults.aspx