PA 3311 / PS 3315 — Course Spine Datasets (Codebook)

PA 3311 / PS 3315 — Course Spine Datasets (Codebook)

Two related files. Use the panel as the primary course dataset.

FileShapeHas debt?Best for
TX_City_Sales_Panel_2013_2024.xlsx ⭐ primarylong panel, city × yearnotrends, growth, paired/repeated comparisons, COVID shock, plus all cross-sectional methods on a single-year slice
TX_City_Finance_2022.xlsx supplementcross-section, one row per cityyesthe regression/OVB module if you want a debt outcome (single year)

PRIMARY: TX_City_Sales_Panel_2013_2024

Unit: Texas city × year. 13,930 rows; 1,180 cities; years 2013–2024. Long format (one row per city per year).

Sources (all free, no API key)

  • Texas Comptroller, data.texas.gov — Sales Tax Allocation (vfba-b57j, annual sum of monthly payments), Quarterly Sales Tax Historical (7z4d-yf2c, taxable sales + outlets, 2016+), City–County Comparison (53pa-m7sm, local rate).
  • Census 2022 Census of Governments directorycounty, metro_status, and a 2022 reference population (time-invariant).

Variables

| Variable | Description | Units | Notes | |—|—|—|—| | city | City name | — | | | county | County | — | time-invariant | | metro_status | Metro (in a Metropolitan Statistical Area) vs. Non-Metro | category | time-invariant; OMB/Census CBSA 2023 | | cbsa_type | Metropolitan / Micropolitan / Neither | category | time-invariant; OMB/Census CBSA 2023 | | population_2022_ref | 2022 reference population | persons | fixed across years — denominator only | | year | Calendar year | 2013–2024 | | | sales_tax_alloc | Sales-tax allocation payments | $/yr | 2013–2024 | | sales_tax_alloc_per_capita | alloc / 2022 ref population | $ | | | sales_tax_alloc_real2024 | allocation in constant 2024 dollars | $/yr | CPI-U deflated | | sales_tax_alloc_per_capita_real2024 | real (2024$) allocation per capita | $ | derived | | taxable_sales | Total taxable sales | $/yr | 2016+ only (blank 2013–15) | | taxable_sales_per_capita | taxable_sales / 2022 ref population | $ | 2016+ | | business_outlets | Avg. active business outlets (quarterly mean) | count | 2016+ | | sales_tax_rate | Local sales-tax rate | percent | | | has_edc | 1 if the city operates a Type A and/or Type B economic-development corporation (EDC) sales tax | 0/1 | TX Comptroller EDC reports (see below) | | edc_type | A, B, A&B, or blank (none) | category | TX Comptroller EDC reports | | edc_first_report_year | Earliest fiscal year the city appears in EDC report data — left-censored proxy for adoption, not a clean date | year | TX Comptroller EDC reports |

Economic-development sales tax (has_edc, edc_type, edc_first_report_year) — Case A. Source: Texas Comptroller EDC Report Data (“big table,” data.texas.gov d4dd-rd43, annual EDC reports FY1997–present). 637 of 1,180 panel cities operate an EDC (B = 369, A&B = 190, A = 78). Use has_edc/edc_type as a cross-sectional treatment (EDC vs. non-EDC cities). Caveat: EDC reporting began in FY1997, so edc_first_report_year is left-censored at 1997 — by 1998 some 384 Texas cities had already adopted (TEDC). Most adoption therefore predates this 2013–2024 panel (only ~45 cities first report in 2013+), so the column does not support a clean adoption-date difference-in-differences; a credible adoption-date DiD would require an open-records request to the Comptroller for per-jurisdiction tax effective dates. Rebuild with scripts/add_edc.py. (4A/Type A authorized 1989; 4B/Type B 1991.)

metro_status and cbsa_type use the official OMB / Census CBSA delineation (2023): a city is Metro if its county belongs to a Metropolitan Statistical Area, Non-Metro otherwise (Micropolitan or neither). cbsa_type keeps the full three-way distinction.

Panel notes / teaching points

  • Mostly balanced: 1,143 of 1,180 cities have all 12 years; the rest incorporated or began receiving allocations mid-period (unbalanced panel — a real teaching point).
  • population_2022_ref is fixed at 2022, so per-capita values change only through the numerator. Free annual city population isn’t available without the Census API; flagged as a deliberate simplification.
  • Taxable sales/outlets begin in 2016, so 2013–2015 are blank for those columns.
  • 2020 shows the COVID demand shock in most cities — a great motivating example (e.g., Austin allocation dips 2019→2020 then surges).

How this single file powers each module

  • Descriptives & graphs: filter to one year (e.g., 2024) → skewed distributions of sales_tax_alloc_per_capita, histograms, mean vs. median, outliers.
  • z-scores & probability: standardize per-capita sales tax within a year.
  • Hypothesis testing / CIs: mean per-capita sales tax with a confidence interval (one year).
  • Independent-samples t-test: per-capita sales tax for Metro vs. Non-Metro (one year); or per-capita taxable sales for EDC vs. non-EDC cities (has_edc) — a Case A treatment comparison (note the skew: EDC median $24k vs. $10k, but means not significantly different — a selection/skew lesson).
  • Paired-samples t-test: sales_tax_alloc 2019 vs. 2023 (or 2019 vs. 2020, COVID) — same cities, two years.
  • Correlation & simple regression: sales_tax_alloc ~ taxable_sales (one year).
  • Multiple regression + OVB: sales_tax_alloc ~ business_outlets (simple) → add taxable_sales (watch the coefficient move).
  • Trends/growth (panel bonus): plot one city over time; compute year-over-year growth; compare metro vs. non-metro recovery after 2020.
  • Final project: students pose their own question from the panel.

In Excel, get a single-year cross-section with Data → Filter on year, or a PivotTable.


SUPPLEMENT: TX_City_Finance_2022 (has debt)

Cross-section, one row per city (N=1,202), 2022. Carries the same city/county/county_fips/place_fips/metro_status/cbsa_type/population keys as the panel, and adds variables not available annually: property_tax, gen_sales_tax, total_taxes, tax_per_capita, lt_debt_os, st_debt_os, total_debt_os, debt_per_capita — from the U.S. Census 2022 Census of Governments individual unit file (amounts in dollars; debt = long-term 49U + short-term 64V). Use this if you want a debt outcome for the regression/OVB module. No fund balance exists in any free source (so the literal Chapter 8 fund-balance variable can’t be reproduced). ~30% of small cities carry $0 debt (real; good for discussing zeros/skew).


Summary statistics (auto-generated)

All dollar amounts in nominal dollars unless marked real. Heavy right-skew (mean ≫ median) throughout — itself a teaching point.

Panel — all 13,930 city-years (2013–2024)

VariableNMeanMedianSDMinMaxMiss %
population_2022_ref13,55619,0342,156107,11917.002,316,1202.7
sales_tax_alloc13,9305,498,823377,73129,634,1830.00892,880,2330.0
sales_tax_alloc_per_capita13,5562771864440.0010,9082.7
sales_tax_alloc_real202413,9306,525,292453,39234,867,8110.00919,215,1920.0
sales_tax_alloc_per_capita_real202413,5563272265140.0012,3062.7
taxable_sales10,185715,260,72233,057,3315,469,363,1490.00176,329,806,39826.9
taxable_sales_per_capita9,96526,23515,67251,0710.001,333,05628.5
business_outlets10,1851,2151727,1460.00204,18126.9
sales_tax_rate13,9301.501.500.380.252.000.0

Cross-section — 1,202 cities (2022)

VariableNMeanMedianSDMinMaxMiss %
population1,20217,9511,996103,97417.002,316,1200.0
property_tax1,20210,126,994776,00071,589,1000.001,600,416,0000.0
total_taxes1,20218,629,4051,559,000121,032,2740.002,865,310,0000.0
tax_per_capita1,2021,4415804,2860.0045,0580.0
total_debt_os1,20270,346,737754,000669,647,3680.0013,110,985,0000.0
debt_per_capita1,2021,2855142,2440.0045,1530.0
sales_tax_rate1,1421.531.500.380.252.005.0
taxable_sales1,113850,681,91042,284,5126,251,606,1200.00166,330,315,8787.4
sales_tax_alloc_20191,1395,436,515385,41528,713,0410.00698,992,9685.2
sales_tax_alloc_20231,1397,459,625553,01737,755,0011,371892,880,2335.2
salestax_growth_19_23_pct1,13055.9244.4582.45-72.601,7816.0

The same tables ship as a Summary worksheet inside each .xlsx, alongside a Codebook worksheet of these definitions.


Built 2026-06-01. Rebuild: python3 build_panel.py (primary) and python3 build_dataset.py (supplement). Each auto-downloads its source files (Census finance zip + OMB CBSA file) to _raw/.