Package: redist 4.3.2.9000


Christopher T. Kenny
redist: Simulation Methods for Legislative Redistricting
Enables researchers to sample redistricting plans from a pre-specified target distribution using Sequential Monte Carlo and Markov Chain Monte Carlo algorithms. The package allows for the implementation of various constraints in the redistricting process such as geographic compactness and population parity requirements. Tools for analysis such as computation of various summary statistics and plotting functionality are also included. The package implements the SMC algorithm of McCartan and Imai (2023) <doi:10.1214/23-AOAS1763>, the enumeration algorithm of Fifield, Imai, Kawahara, and Kenny (2020) <doi:10.1080/2330443X.2020.1791773>, the Flip MCMC algorithm of Fifield, Higgins, Imai and Tarr (2020) <doi:10.1080/10618600.2020.1739532>, the Merge-split/Recombination algorithms of Carter et al. (2019) <doi:10.48550/arXiv.1911.01503> and DeFord et al. (2021) <doi:10.1162/99608f92.eb30390f>, and the Short-burst optimization algorithm of Cannon et al. (2020) <doi:10.48550/arXiv.2011.02288>.
Authors:
redist_4.3.2.9000.tar.gz
redist_4.3.2.9000.zip(r-4.7)redist_4.3.2.9000.zip(r-4.6)redist_4.3.2.9000.zip(r-4.5)
redist_4.3.2.9000.tgz(r-4.6-x86_64)redist_4.3.2.9000.tgz(r-4.6-arm64)redist_4.3.2.9000.tgz(r-4.5-x86_64)redist_4.3.2.9000.tgz(r-4.5-arm64)
redist_4.3.2.9000.tar.gz(r-4.7-arm64)redist_4.3.2.9000.tar.gz(r-4.7-x86_64)redist_4.3.2.9000.tar.gz(r-4.6-arm64)redist_4.3.2.9000.tar.gz(r-4.6-x86_64)
redist_4.3.2.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
redist/json (API)
NEWS
| # Install 'redist' in R: |
| install.packages('redist', repos = c('https://alarm-redist.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/alarm-redist/redist/issues
Pkgdown/docs site:https://alarm-redist.org
geospatialgerrymanderingredistrictingsamplingopenblascppopenmp
Last updated from:be2991d141 (on dev). Checks:13 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 376 | ||
| linux-devel-x86_64 | OK | 369 | ||
| source / vignettes | OK | 539 | ||
| linux-release-arm64 | OK | 374 | ||
| linux-release-x86_64 | OK | 353 | ||
| macos-release-arm64 | OK | 326 | ||
| macos-release-x86_64 | OK | 610 | ||
| macos-oldrel-arm64 | OK | 212 | ||
| macos-oldrel-x86_64 | OK | 582 | ||
| windows-devel | OK | 449 | ||
| windows-release | OK | 421 | ||
| windows-oldrel | OK | 469 | ||
| wasm-release | OK | 323 |
Exports:add_constr_competadd_constr_customadd_constr_edges_remadd_constr_fry_holdadd_constr_grp_hingeadd_constr_grp_inv_hingeadd_constr_grp_powadd_constr_incumbencyadd_constr_log_stadd_constr_multisplitsadd_constr_polsbyadd_constr_pop_devadd_constr_segregationadd_constr_splitsadd_constr_status_quoadd_constr_total_splitsadd_referenceas_redist_mapavg_by_precclassify_planscombine_scorerscompare_planscompetitivenesscounty_splitsdistr_compactnessfilterfreezeget_adjget_existingget_mh_acceptance_rateget_plans_matrixget_plans_weightsget_pop_tolget_sampling_infoget_targetgroup_fracis_contiguousis_county_splitlast_planmake_coresmatch_numbersmerge_bymin_move_paritymuni_splitsnumber_bypartisan_metricsplplan_distancesplan_parityplans_diversityprec_assignmentprec_cooccurrenceproj_avgproj_contrproj_distrpullbackredist_ciredist_constrredist_cyclewalkredist_enumpartredist_enumpart_frontierredist_flipredist_flip_annealredist_mapredist_mcmc_ciredist_mergesplitredist_mergesplit_parallelredist_plansredist_quantile_truncredist_shortburstredist_smcredist_smc_ciredist.adjacencyredist.calc.frontier.sizeredist.coarsen.adjacencyredist.combine.mpiredist.compactnessredist.competitivenessredist.constraint.helperredist.county.idredist.county.relabelredist.crsgredist.diagplotredist.dist.pop.overlapredist.distancesredist.district.splitsredist.enumpartredist.find.targetredist.findparamsredist.freezeredist.group.percentredist.identify.coresredist.init.enumpartredist.ipwredist.mcmc.mpiredist.metricsredist.multisplitsredist.muni.splitsredist.parityredist.plot.adjredist.plot.contr_pfdrredist.plot.coresredist.plot.distr_qtysredist.plot.histredist.plot.majminredist.plot.mapredist.plot.penaltyredist.plot.plansredist.plot.scatterredist.plot.traceredist.plot.varinforedist.plot.wted.adjredist.prec.pop.overlapredist.prep.enumpartredist.random.subgraphredist.read.enumpartredist.reduce.adjacencyredist.reorderredist.rsgredist.run.enumpartredist.segcalcredist.sink.planredist.smc_is_ciredist.splitsredist.subsetredist.uncoarsenredist.wted.adjscorer_frac_keptscorer_group_pctscorer_multisplitsscorer_polsby_popperscorer_pop_devscorer_splitsscorer_status_quosegregation_indexset_adjset_pop_tolsubset_refsubset_sampledtally_var
Dependencies:classclassIntclicodetoolscpp11DBIdigestdoParalleldoRNGdplyre1071farverforeachgenericsgeosggplot2gluegtableisobanditeratorsKernSmoothlabelinglibgeoslifecyclemagrittrMASSpatchworkpillarpkgconfigproxyR6RColorBrewerRcppRcppArmadilloRcppThreadredistmetricsrlangrngtoolss2S7scalessfstringistringrsystibbletidyselectunitsutf8vctrsviridisLitewithrwk
Common Arguments to redist Functions
Rendered fromcommon_args.Rmdusingknitr::rmarkdownon Jun 03 2026.Last update: 2026-05-29
Started: 2022-06-11
Introduction to redist
Rendered fromredist.Rmdusingknitr::rmarkdownon Jun 03 2026.Last update: 2026-05-29
Started: 2021-04-04
Map Pre-processing for Special Constraints
Rendered frommap-preproc.Rmdusingknitr::rmarkdownon Jun 03 2026.Last update: 2026-05-29
Started: 2021-04-04
Redistricting with Flip MCMC
Rendered fromflip.Rmdusingknitr::rmarkdownon Jun 03 2026.Last update: 2026-05-29
Started: 2024-01-11