docs: a sheriff-contract city is not a real zero for Police (#80)
The coverage docs said a city that contracts policing to the county sheriff has no Police rows and that its Police spending "is a real zero". Checked against the published corpus (build of 2026-10-26) through the public API for 34 cities with documented sheriff contracts (Los Angeles, San Diego and Orange counties, CA; King County, WA) in FY2012, FY2017 and FY2022: all 102 city-years carry Police spending. 93 have direct Police rows (E62/F62/G62) and so count as reporting. The other nine report the contract payment only as intergovernmental Police expenditure (M62), which the "primary" and "direct" concepts leave out, so they land among the collected governments with no Police rows while paying for policing. The vignette's three-group list, the n_units_collected and n_units_reporting bullets in cog_peer_compare(), cog_geographic_rollup() and .coverage_table(), and the FY2022 Georgia paragraphs now say that a collected government with no rows in a category can still spend on it, and that a contract city lands in that group only when it reports no direct Police spending. man/ regenerated with roxygen2 7.3.3. No code changed. Closes #80 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qbe6u2h83wgZdTgJgE4Xh5
This commit is contained in:
6 files changed
+89
-48
No files matched your search
@@ -71,13 +71,25 @@ The counters split the governments you named into three groups each year:
|
||||
in years ending in 2 or 7 and from a sample in other years, so in a sample year
|
||||
this group includes every government outside that year's sample.
|
||||
2. `n_units_collected - n_units_reporting` governments were collected that year but
|
||||
have no rows in your category. A city that contracts its policing to the county
|
||||
sheriff lands here for `category = "Police"`. Its Police spending is a real zero.
|
||||
have no rows in your category. The rows come from the concept you asked for, and
|
||||
the default `"primary"` concept leaves out intergovernmental expenditure. A city
|
||||
that pays the county sheriff to police it and reports the payment as
|
||||
intergovernmental expenditure lands here for `category = "Police"`, although it
|
||||
spends money on policing.
|
||||
3. `n_units_reporting` governments have rows in your category.
|
||||
|
||||
A government in the first group and a government in the second group look the same in
|
||||
the result: neither has a row. Only `n_units_collected` tells them apart.
|
||||
|
||||
A government in the second group does not necessarily spend nothing in your category.
|
||||
The published corpus, as of its 2026-10-26 build, has Police spending for every one of
|
||||
34 cities with documented county sheriff contracts in California and Washington, in
|
||||
each of FY2012, FY2017 and FY2022. In 93 of those 102 city-years the city reports
|
||||
direct Police spending and counts as reporting. In the other nine it reports the
|
||||
payment only as intergovernmental Police expenditure, code `M62`, and lands in the
|
||||
second group. For a single government, `cog_spending()` with
|
||||
`expenditure_concept = "total"` adds the intergovernmental rows.
|
||||
|
||||
# Georgia cities and Police spending
|
||||
|
||||
Build the list of Georgia cities with `cog_gov_search()` and roll their Police
|
||||
@@ -216,8 +228,9 @@ attr(police_2022, "provenance")$coverage
|
||||
On the published corpus, as of its 2026-10-26 build, the chunk returns 567 expected,
|
||||
535 collected and 393 reporting. The 174 cities without Police rows split into 32
|
||||
that Census did not collect and 142 that were collected and have no Police rows.
|
||||
Contracting policing to the county sheriff is one reason a city lands in the second
|
||||
group; the counters do not say how many of the 142 do.
|
||||
A city that contracts with the county sheriff lands in the second group only when it
|
||||
reports no direct Police spending, for example when it files the payment as
|
||||
intergovernmental expenditure. The counters do not say how many of the 142 do.
|
||||
|
||||
# Peer comparisons count peers only
|
||||
|
||||
|
||||
Reference in new issue
Block a user