Package: shellgame 0.1.0

shellgame: The Shell Game - Audit Geographic Data Transformations

Reveals how data quality silently degrades during geographic transformations while variable labels remain unchanged. Demonstrates that transformation error is agnostic to both the variable (population, income, etc.) and the tool (R, Python, etc.). Provides a reproducible audit framework for quantifying the shift from observed to imputed data at each transformation hop.

Authors:Phinn Markson [aut, cre]

shellgame_0.1.0.tar.gz
shellgame_0.1.0.zip(r-4.7-any)shellgame_0.1.0.zip(r-4.6-any)shellgame_0.1.0.zip(r-4.5-any)
shellgame_0.1.0.tgz(r-4.6-any)shellgame_0.1.0.tgz(r-4.5-any)
shellgame_0.1.0.tar.gz(r-4.7-any)shellgame_0.1.0.tar.gz(r-4.6-any)
shellgame_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
shellgame/json (API)

# Install 'shellgame' in R:
install.packages('shellgame', repos = c('https://phinnphace.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/phinnphace/shellgame/issues

On CRAN:

Conda:

acsauditcensuscrosswadatageographic-datamethodology-frameworkpopulationquality

5.38 score 2 stars 6 scripts 317 downloads 14 exports 68 dependencies

Last updated from:d5efa3fe0e. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK141
source / vignettesOK236
linux-releaseOK140
macos-releaseOK207
macos-oldrelOK175
windows-develOK93
windows-releaseOK80
windows-oldrelOK93
wasm-releaseOK126

Exports:audit_transformationcheck_census_keycreate_audit_reportextract_perturbed_populationget_zcta_baselinepad_geoidplot_baseline_zctasplot_geometric_vs_relationshipplot_transformation_perturbationprep_hud_crosswalkprep_zip_zctarun_full_transformationtransform_zcta_to_ziptransform_zip_to_county

Dependencies:askpassbitbit64classclassIntclicliprcpp11crayoncurlDBIdplyre1071farvergenericsggplot2gluegtablehmshttrisobandjanitorjsonliteKernSmoothlabelinglifecyclelubridatemagrittrmimeopensslpillarpkgconfigprettyunitsprogressproxypurrrR6rappdirsRColorBrewerRcppreadrrlangrvests2S7scalesselectrsfsnakecasestringistringrsystibbletidycensustidyrtidyselecttigristimechangetzdbunitsutf8uuidvctrsviridisLitevroomwithrwkxml2

Hennepin example
Introduction | The Workflow | Step 1: Prepare the Data | Step 2: Run the Audit | Step 3: View Results | Membership Visualization | Baseline: 74 ZCTAs | The First Hop: ZCTA → ZIP | The Second Hop: ZIP → County | The Perturbation | Geometric vs Relationship Membership | Visualizing the Difference | The Shell Game Revealed | Why This Matters | Next Steps

Last update: 2026-09-25
Started: 2026-02-11

The Shell Game: conceptual framework
The Shell Game | What the Shell Actually Is | The Critical Shift | The Transformation Chain | Pre-allocation | First Claim | The Two Hidden Decisions | Decision 1: Membership Definition | Decision 2: Crosswalk Selection | The Result | Why This Is Agnostic | What This Package Does

Last update: 2026-05-17
Started: 2026-05-01