Estimating Across Geographic Levels

Functions for approximating values at different levels of geography

geo_estimate_down()

Estimate Down Geography Levels

estimate_down()

Estimate Down Levels

geo_estimate_up()

Estimate Up Geography Levels

estimate_up()

Estimate Up Levels

geo_match()

Match Across Geographic Layers

Buiding Datasets

Functions to help build and refine data

create_block_table()

Create Block Level Data

create_tract_table()

Create Tract Level Data

block2prec()

Aggregate Block Table by Matches

block2prec_by_county()

Aggregate Block Table by Matches and County

geo_filter()

Filter to Intersecting Pieces

geo_trim()

Trim Away Small Pieces

Fixing Geographic Imperfections

Functions to help pretend that the geographies were properly connected

check_contiguity()

Check Contiguity by group

add_edge()

Add Edges to an Adjacency List

compare_adjacencies()

Compare Adjacency Lists

geo_plot_group()

Create Plots of Shapes by Group with Connected Components Colored

geo_sort()

Sort Precincts

suggest_component_connection()

Suggest Connections for Disconnected Groups

suggest_neighbors()

Suggest Neighbors for Lonely Precincts

Format Data with Dave's Redistricting

Functions to get maps into DRA or from DRA

dra2r()

DRA to R

r2dra()

R to DRA

Spatial Autocorrelation

Functions to measure local and global autocorrelation measures

global_geary()

Compute Global Geary's C

global_morans()

Compute Global Moran's I

gstar_i()

Compute Standardized Getis Ord G*i

local_gearys()

Compute Local Geary's C

local_morans()

Compute Local Moran's I

Included Example Data

checkerboard

Checkerboard

checkerboard_adj

Checkerboard Adjacency

towns

towns

va18sub

va18sub

Leftovers

Functions that don’t really fit elsewhere

st_centerish()

Get the kind of center of each shape

count_connections()

Count Times Precincts are Connected

geomander-package

Geographic Tools for Studying Gerrymandering