Package: redist 4.2.0
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) <arxiv:1911.01503> and DeFord et al. (2021) <doi:10.1162/99608f92.eb30390f>, and the Short-burst optimization algorithm of Cannon et al. (2020) <arxiv:2011.02288>.
Authors:
redist_4.2.0.tar.gz
redist_4.2.0.tar.gz(r-4.5-noble)redist_4.2.0.tar.gz(r-4.4-noble)
redist_4.2.0.tgz(r-4.4-emscripten)redist_4.2.0.tgz(r-4.3-emscripten)
redist.pdf |redist.html✨
redist/json (API)
NEWS
# Install 'redist' in R: |
install.packages('redist', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/alarm-redist/redist/issues
Pkgdown site:https://alarm-redist.org
Last updated 12 months agofrom:a0286be84d. Checks:OK: 1 NOTE: 1. Indexed: no.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Dec 09 2024 |
R-4.5-linux-x86_64 | NOTE | Dec 09 2024 |
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_cooccurrencepullbackredist_ciredist_constrredist_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.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:classclassIntclicodetoolscolorspaceDBIdigestdoParalleldoRNGdplyre1071fansifarverfastmapforeachgenericsgeosggplot2gluegtablehttpuvisobanditeratorsjsonliteKernSmoothlabelinglaterlatticelibgeoslifecyclemagrittrMASSMatrixmgcvmimemunsellnlmepatchworkpillarpkgconfigpromisesproxyR6RColorBrewerRcppRcppArmadilloRcppThreadredistmetricsrlangrngtoolss2scalesservrsfstringistringrsystibbletidyselectunitsutf8vctrsviridisLitewithrwkxfun
Common Arguments to redist Functions
Rendered fromcommon_args.Rmd
usingknitr::rmarkdown
on Dec 09 2024.Last update: 2022-06-16
Started: 2022-06-16
Introduction to redist
Rendered fromredist.Rmd
usingknitr::rmarkdown
on Dec 09 2024.Last update: 2024-01-14
Started: 2021-04-07
Map Pre-processing for Special Constraints
Rendered frommap-preproc.Rmd
usingknitr::rmarkdown
on Dec 09 2024.Last update: 2024-01-14
Started: 2021-04-07
Redistricting with Flip MCMC
Rendered fromflip.Rmd
usingknitr::rmarkdown
on Dec 09 2024.Last update: 2024-01-14
Started: 2024-01-14