Ecological inference estimates by county for PA State.
Ecological Inference Estimates
ei =transpose(ei_df)
viewof countyInput = Inputs.select(ei.map(d => d.county), {sort:true,unique:true,label:"Choose a county:"})Plot.plot({marks: [ Plot.ruleX([0]), Plot.dot(ei, {x:"mean",y:"race",fill:"race",r:4,filter: d => d.county=== countyInput,sort: {y:null} }), Plot.link(ei, {x1:"ci_95_lower",x2:"ci_95_upper",y1:"race",y2:"race",filter: d => d.county=== countyInput })],facet: {data: ei,y:"election",filter: d => d.county=== countyInput,marginRight:150,label:"Contest",sort: {fy:null}},fill: {legend:true},x: {label:"(%) Estimated Support for Democrats",percent:true,labelAnchor:"center"},y: {label:"Race"},height:600,marginLeft:80})
Each point indicates the estimated mean for that race or ethnicity’s estimated support for the Democratic candidate. The extent of the bar indicates a 95% confidence interval.
2020 Pennsylvania county
Data Sources
Data for Pennsylvania comes from the ALARM Project’s 2020 Redistricting Data Files. This data standardizes the Voting and Election Science Team (VEST) data from the Harvard Dataverse to geographies from the US Census Bureau, primarily at the VTD level.