Closed Aneetej closed 1 year ago
Hey Aneetej, thanks. Two things need addressing:
TODO
in 01_prep
that needs to be removed. disconn_cty <- function(adj, cty1, cty2) {
v1 <- which(or_shp$county == str_c(cty1, " County"))
if (length(v1) == 0) stop(cty1, "not found")
v2 <- which(or_shp$county == str_c(cty2, " County"))
if (length(v2) == 0) stop(cty1, "not found")
vs <- tidyr::crossing(v1, v2)
remove_edge(adj, vs$v1, vs$v2)
}
or_shp$adj <- or_shp$adj %>%
disconn_cty("Curry", "Josephine") %>%
disconn_cty("Benton", "Lane") %>%
disconn_cty("Polk", "Lincoln") %>%
disconn_cty("Marion", "Jefferson") %>%
disconn_cty("Marion", "Wasco") %>%
disconn_cty("Wallowa", "Baker") %>%
disconn_cty("Morrow", "Grant") %>%
disconn_cty("Crook", "Grant") %>%
disconn_cty("Deschutes", "Harney") %>%
disconn_cty("Deschutes", "Linn")
2010 Oregon Congressional Districts
Redistricting requirements
In Oregon, according to Or. Rev. Stat. § 188.010 of the state constitution, districts must:
Algorithmic Constraints
We enforce a maximum population deviation of 0.5%. We use a pseudo-county constraint to help preserve county and municipality boundaries, as described below.
Data Sources
Data for Oregon comes from the ALARM Project's 2020 Redistricting Data Files.
Pre-processing Notes
Oregon does not submit precinct boundaries to the Census Bureau. The base shapefile consists of tracts, but where tracts are split by the enacted congressional districts, we create separate sub-tracts. As described above, counties not linked by a state or federal highway were manually disconnected. The full list of these counties can be found in the '01_prep_OR_cd_2010.R' file.
Simulation Notes
We sample 5,000 districting plans for Oregon across two independent runs of the SMC algorithm. To balance county and municipality splits, we create pseudocounties for use in the county constraint. These are counties, outside of Multnomah county. Within Multnomah county, each municipality is its own pseudocounty as well. Multnomah county were chosen since it is necessarily split by congressional districts.
Validation
Checklist
TODO
lines from the template code have been removedenforce_style()
to format my coderedist_map
andredist_plans
objects, and summary statistics) have been edited@CoryMcCartan @christopherkenny