Skip to content

docs: Add missing documentation for advanced outputs, economic impact analysis, and regions#256

Open
anth-volk wants to merge 3 commits intomainfrom
docs/add-missing-documentation
Open

docs: Add missing documentation for advanced outputs, economic impact analysis, and regions#256
anth-volk wants to merge 3 commits intomainfrom
docs/add-missing-documentation

Conversation

@anth-volk
Copy link
Contributor

Summary

Closes #255

Adds documentation for ~40-50% of the public API that was previously undocumented:

  • New page: Economic impact analysis — full economic_impact_analysis() workflow (US + UK), PolicyReformAnalysis return type, ChangeAggregate vs full pipeline, all filter options
  • New page: Advanced outputsDecileImpact, IntraDecileImpact, Poverty (all types + demographic breakdowns), Inequality, OutputCollection
  • New page: Regions and scopingRegion, RegionRegistry, RowFilterStrategy, WeightReplacementStrategy, CongressionalDistrictImpact, ConstituencyImpact, LocalAuthorityImpact
  • Expanded Core concepts — added data loading (ensure_datasets), simulation lifecycle (run() vs ensure()), Dynamic class, simulation_modifier, policy combination
  • Expanded Development — setup, testing, CI pipeline, versioning, architecture overview (was 4 bullet points)
  • Updated index.md — links to all 8 documentation pages
  • Fixed myst.yml — added new pages + previously orphaned visualisation.md to TOC
  • Aligned PR docs CI — switched from Jupyter Book to MyST to match the production deploy workflow
  • New exampleexamples/us_budgetary_impact.py demonstrating canonical US budgetary impact comparison

Test plan

  • Verify myst build --html succeeds in docs/ directory
  • Verify all new pages render correctly on the docs site
  • Verify cross-page links resolve (Next steps in core-concepts, references in advanced-outputs, etc.)
  • Verify PR docs CI workflow passes with the MyST change

🤖 Generated with Claude Code

anth-volk and others added 3 commits March 16, 2026 19:41
… analysis, and regions

Closes #255

- Add economic-impact-analysis.md: full baseline-vs-reform workflow, ChangeAggregate vs pipeline
- Add advanced-outputs.md: DecileImpact, IntraDecileImpact, Poverty, Inequality, OutputCollection
- Add regions-and-scoping.md: Region, RegionRegistry, scoping strategies, geographic impacts
- Expand core-concepts.md: data loading, ensure() vs run(), Dynamic, simulation_modifier
- Flesh out dev.md: setup, testing, CI, architecture overview
- Update index.md and myst.yml TOC to include all pages (+ orphaned visualisation.md)
- Align PR docs CI with production (MyST instead of Jupyter Book)
- Add examples/us_budgetary_impact.py

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Create docs/examples.md embedding all example scripts via {literalinclude}
- Add examples page to myst.yml TOC
- Replace all "See examples/..." prose with links to examples.md sections

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@anth-volk anth-volk marked this pull request as ready for review March 16, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: Add missing documentation for economic impact analysis, advanced outputs, regions, and scoping

1 participant