pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy +…
NHGIS — census geography crosswalks via Portal: links schools (ncessch) and colleges (unitid) to tracts, block groups, CBSAs (1990-2020). Census demographics NOT in Portal — access NHGIS directly. Use for linking education data to census geography.
Claude Code
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill education-data-source-nhgis --agent claude-code
Codex
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill education-data-source-nhgis -a codex -y
Cursor
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill education-data-source-nhgis -a cursor -y
Gemini CLI
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill education-data-source-nhgis -a gemini-cli -y
GitHub Copilot
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill education-data-source-nhgis -a github-copilot -y
OpenCode
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill education-data-source-nhgis -a opencode -y
Windsurf
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill education-data-source-nhgis -a windsurf -y
name: education-data-source-nhgis description: >- NHGIS — census geography crosswalks via Portal: links schools (ncessch) and colleges (unitid) to tracts, block groups, CBSAs (1990-2020). Census demographics NOT in Portal — access NHGIS directly. Use for linking education data to census geography. metadata: audience: any-agent domain: data-source skill-authored: "2026-02-09" skill-last-updated: "2026-02-09"
IPUMS NHGIS — census geography crosswalks and demographic data for education research. Via the Education Data Portal: geographic crosswalk tables linking K-12 schools (ncessch) and colleges (unitid) to census tracts, block groups, CBSAs, and regions (census 1990-2020). Census demographic variables (income, poverty, race, educational attainment) are NOT in the Portal — access directly from NHGIS via free IPUMS registration. Use when linking school or institutional data to census geography for contextual analysis.
Census geography and demographic data source for education research. NHGIS provides the foundation for linking schools to community characteristics via census tracts, block groups, and school district boundaries.
> **CRITICAL: Value Encoding** > > When accessing NHGIS data through the Education Data Portal (not NHGIS directly), categorical variables use **integer encodings**, not string labels. Always verify the exact codes in the mirror codebook. > > | Variable | Integer Code | Meaning | > |----------|--------------|---------| > | `census_region` | `1` | Northeast | > | `census_region` | `2` | Midwest | > | `census_region` | `3` | South | > | `census_region` | `4` | West | > | `cbsa_type` | `1` | Metropolitan | > | `cbsa_type` | `2` | Micropolitan | > | `geocode_accuracy` | `4` | Did not geocode | > > See `./references/variable-catalog.md` for complete encoding tables.
> **CRITICAL: Portal Data Scope** > > The Education Data Portal provides ONLY **geographic crosswalk tables** that link schools and colleges to census geography (tracts, block groups, regions, CBSAs). These contain geographic identifiers and assignment columns — approximately 35-47 columns per file. > > The Portal does **NOT** provide census demographic data (population, income, poverty, race, education attainment, housing, language, etc.). For demographic variables, you must access NHGIS directly via IPUMS (free registration required). See `./references/data-access.md` for direct access methods. > > This skill documents both contexts: Portal crosswalk data (with integer encodings above) and direct NHGIS census variables (in `./references/variable-catalog.md`, clearly marked as requiring direct NHGIS access).
NHGIS (from IPUMS, University of Minnesota) provides free access to census geography and demographic data.
| File | Purpose | When to Read | |------|---------|--------------| | `geographic-units.md` | Census geography hierarchy (tracts, blocks, districts) | Understanding census geography | | `school-geography-links.md` | Linking schools to census areas | Connecting school data to demographics | | `time-series.md` | Historical data, harmonization methods | Longitudinal analysis | | `variable-catalog.md` | Key demographic variables, codes, special values | Selecting census variables or interpreting encodings | | `boundary-changes.md` | How boundaries change between censuses | Handling geographic inconsistencies | | `data-access.md` | Direct NHGIS access methods (registration, Data Finder, ipumspy) | Custom census analysis beyond Portal |
Research question about...
├─ Individual schools
│ ├─ School's immediate neighborhood → Census tract or block group
│ ├─ School attendance zone → SABINS (limited years) or block-to-school crosswalk
│ └─ School district overall → School district boundaries
├─ School districts
│ ├─ District-level demographics → School district geographic level
│ ├─ Within-district variation → Census tracts within district
│ └─ District poverty estimates → SAIPE (via Education Data Portal)
├─ Regional patterns
│ ├─ County-level → County boundaries
│ ├─ Metro area → CBSA (Core Based Statistical Area)
│ └─ State-level → State boundaries
└─ Historical analysis
├─ Consistent boundaries needed → Geographically standardized tables
└─ Original boundaries OK → Nominally integrated tablesLinking schools to census demographics? ├─ Have school coordinates (lat/lon) │ ├─ Point-in-polygon → Spatial join to tract/block group boundaries │ └─ Need tract ID only → Geocoding service or FCC API ├─ Have school NCES ID only │ ├─ Use NCES EDGE files → School District Geographic Relationship Files │ └─ Use Education Data Portal → NHGIS source provides tract links ├─ Need school attendance zones │ ├─ 2009-2012 data → SABINS school areas │ └─ Current data → Contact school district (no national source) └─ See ./references/school-geography-links.md for details
Time period? ├─ Single recent year │ ├─ Tract/block group level → AC
## 🔥 力荐 · StatsPAI — Stata 与 R 的 Python 平替,为 AI Agent 而生 🔁 Stata / R 平替:reghdfe、csdid、rdrobust、synth、fixest、did 等常用命令在 Python 中一站式替代,一个 import statspai as sp 搞定 DID / RD / IV / SCM / DML / matching 🤖 面向 Agent 设计:结构化结果对象 + 内置 MCP Server,Claude / Codex
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy +…
Use when the user asks to run a full empirical / causal analysis in Python — by default in the style of an applied economics…
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy +…
Classical end-to-end empirical analysis workflow in the traditional Stata ecosystem — native Stata + reghdfe + ivreg2 + csdid +…
Classical end-to-end empirical analysis workflow in the modern tidyverse + econometrics R ecosystem — dplyr + tidyr + haven +…
Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-ready…
Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…