docs: add a vignette on reading provenance$coverage (#72)
vignettes/coverage-counters.Rmd explains the three per-year counters that cog_geographic_rollup() and cog_peer_compare() attach as provenance$coverage, using the definitions in .coverage_table(), R/rollup.R and R/peers.R: n_units_expected (the ids passed, or the peers), n_units_collected (of those, how many have any row in the spending long view that year) and n_units_reporting (of those, how many have a row in the requested category). It splits the named governments into three groups, defines the collection rate and category participation, and shows that reporting / expected is their product. The evaluated chunks run against the bundled fixture and say so: Georgia cities and Police across FY2011, FY2012, FY2019 and FY2020, a peer comparison, and the census, consistent and per_capita effects. The FY2022 example from the reference pages needs the published corpus and is not evaluated, following population-denominators.Rmd. The article is added to the pkgdown Concepts index. Closes #72 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qbe6u2h83wgZdTgJgE4Xh5
This commit is contained in:
2 files changed
+271
No files matched your search
@@ -39,3 +39,4 @@ articles:
|
||||
contents:
|
||||
- total-spending
|
||||
- population-denominators
|
||||
- coverage-counters
|
||||
Reference in new issue
Block a user