g2016: 2016 General Election Results and Survey Estimates

Description Usage Format Source References Examples

Description

Donald Trump's voteshare in each U.S. state, with survey estimates from the Cooperative Congressional Election Study (pre-election wave). See Meng (2018) referenced below for more details. We focus on unweighted estimates to capture the response patterns, before correcting for any imbalances through weights.

Usage

1

Format

A data frame with 51 rows (all U.S. states and D.C.)

state

state (full name)

st

state (abbreviation).

pct_djt_voters

Donald J. Trump's voteshare, the estimand.

cces_pct_djt_vv

CCES unweighted proportion of Trump support, one estimate.

cces_pct_djtrund_vv

CCES unweighted proportion counting Republican undecideds as Trump voters.

votes_djt

Total number of votes by Trump.

tot_votes

Turnout in Presidential as total number of votes cast.

cces_totdjt_vv

Validated voters intending to vote for Trump. Used as the numerator for the above CCES estimates.

cces_n_vv

Validated voters in survey sample. Used as the denominator for the above CCES estimates.

vap

Voting Age Population in the state.

vep

Voting Eligible Population in the state (estimate from the US Election Project).

Source

Cooperative Congressional Election Study (CCES) https://cces.gov.harvard.edu/ and the United States Election Project http://www.electproject.org/2016g. Created under https://github.com/kuriwaki/poll_error.

References

For an explanation in the context of d.d.i., see Meng (2018) <doi:10.1214/18-AOAS1161SF>

Examples

1
2
3
4
5
6
7
8
9
library(dplyr)
data(g2016)

transmute(g2016,
          st,
          ddc = ddc(mu = pct_djt_voters,
                    muhat = cces_pct_djt_vv,
                    N = tot_votes,
                    n = cces_n_vv))

ddi documentation built on March 26, 2020, 7:26 p.m.

Related to g2016 in ddi...