# How campaign money is spent in close and safe US midterm races: design, round 1

Committed before any 2022 or 2026 spending file is read. The frozen parameters are in `protocol-r1.json`; where the two
differ, the JSON wins. Any later change is a labelled "Change N to the protocol", committed before it is used, and a change
made after results are seen says so on the page.

## Question

In the 2026 US midterms, how did campaign money differ between races that looked close beforehand and races that looked
safe, and from 2022 at the same point in the calendar? Not a forecast. Spending and votes are endogenous, money goes where a
race is expected to be close, so this study makes no causal claim about money winning races. It does not read a single
2026 vote.

## Overlap test (one question, one study)

The nearest published study is `brazil-runoff-vote-transfer`, which estimates where voters went between rounds from Brazilian
official counts. It has no money, no US data and no spending categories. No other published study touches campaign finance (a
search of every card for campaign, election and FEC found only that study and an unrelated retargeting one). So this is a new
study, not a round of another.

Crowding: US campaign totals are covered well by the FEC itself and by campaign-finance trackers, and forecasting is crowded.
The angle here is narrower: spending mix by declared category, close against safe, labelled only from what was known before
the cycle, compared at the same point before election day, with one rule for both parties.

## Data

- FEC bulk files for the 2022 and 2026 cycles: candidate master, candidate-committee linkage, operating expenditures,
  independent expenditures, plus the all-candidates and committee summaries for the reconciliation checks.
- The Clerk of the House's statistics of the 2024 election, for House prior margins.
- MIT Election Data and Science Lab Senate and presidential returns (CC0), for Senate and state prior margins.

The FEC's sale-or-use restriction and each source's terms are recorded in `_private/terms/TERMS.md` before any spending file
is read, with the deciding sentence copied mechanically. This study reads no contributor file at all. Payee names are dropped
on read, never stored, and nothing below race, party and category level is published.

## Which races count as close

Prior margin: the difference between the top two candidates over all votes cast, in the last election for that seat before
the cycle. Close is under 10 points, safe is 10 points or more, with one sensitivity (under 5 against 20 or more). No poll,
rating, forecast, primary result or 2026 vote enters the label, so spending cannot change a race's label (FM14).

Three limits come straight from that rule and are declared here:

1. House 2026: states whose lines changed between 2024 and 2026 (AL, CA, FL, LA, MO, NC, OH, TN, TX, UT) have no same-lines
   prior margin. Their districts count in House totals and stay out of close against safe. The list comes from a reference
   summary of the 2025 and 2026 redistricting, with Missouri added because a court ordered its new map used in 2026.
2. House 2022: every state redrew after the 2020 census, so no district has a same-lines prior margin. House 2022 enters the
   2026 against 2022 comparison through totals, mix and the close-state view, never close against safe.
3. Senate 2022: Oklahoma held two Senate contests, which the filings cannot separate, so it is left out of the Senate
   comparison. Louisiana's seat is counted in totals and not classified, because the source has only the first round of its
   2016 open primary.

A close state has a prior presidential margin under 5 points (2024 for the 2026 cycle, 2020 for the 2022 cycle), with its
Senate race and House districts all counted, whatever the seat's own margin. This view exists because the question was first
put in terms of close states, and it is the only one that treats House 2022 the same way as 2026.

## Same point in the calendar

Post-general reports are not due yet, so candidate spending after the pre-general report is not on file for 2026. Every
comparison uses money dated through 20 days before election day (T-20): 14 October 2026 and 19 October 2022, the day the
pre-general reports close. Later 2022 amendments are in the file, and 2026 has had less time for them. The page states the
coverage date and what is missing. Dollars are nominal.

## Spending categories

`tools/classify.py`: eleven categories coded from each filer's free-text purpose, first matching rule wins, with paid ads
defined as media + digital + mail. The rules were written and adjusted on the 2018 cycle only (rows from House and Senate
committees), which is neither of the cycles compared. The filers' own category codes are present on about a quarter of
dollars, so they are too sparse to use; agreement with them is reported as a check, not as a score. Filers describe their
own spending, and "media" can hide digital buys placed by a media firm, so the split between media and digital is a floor for
digital.

## Measures, intervals and symmetry

The measures M1 to M7 are in the protocol. Each is reported for Democratic, Republican and, where it applies, other candidates,
with the same code. Intervals are percentile bootstrap, resampling races within class, 2000 replicates, seed fixed.
Close-against-safe differences get a direction only when the interval excludes zero (FM6). Senate samples are small and the
count is stated beside each result (FM7).

## Checks

Rule tests with planted rows, two reconciliations against the FEC's own summaries on the complete 2022 cycle, the prior
margin parser's count of 435 districts with named controls, and a coverage table per cycle.

## Predictions

The ten predictions are in `predictions-r1.json`. Each is reported as held, missed or untestable; P10 is a safe bet.
