Where 'I am satisfied with school meal options' goes lowest
A reproducibility log: the data this analysis touched, the queries it ran, the outside sources it leaned on, and the steps a third party would follow to re-run it.
Summary
Pulled the survey_meals (or equivalent item: 'I am satisfied with school meal options') across all schools that report it; ranked from lowest. Cross-referenced with school enrollment and grade band.
Data sources
- Database tableschool_year_metrics
Long-format per-school per-year metric facts (school_dbn, year, metric_key, subgroup, value, suppressed). Loaded from DOE/NYSED public files via scripts/loaders/*.
Steps
SELECT schools where the meals-satisfaction survey item is in the bottom decile.
Caveats
Survey items shift wording across years; the metric_key in our DB aligns to whichever item was active in each year's school-survey instrument.
Reproduce
Clone the repo, set DATABASE_URL to a Postgres with the project schema loaded, run `npx tsx scripts/loaders/<source>.ts` for any not-yet-loaded data, then issue the queries in the Steps section. The story page also lists the exact `metric_key`/`subgroup`/`year` filters used. Searchable by the answer's headline number — every figure is recomputable from the queries shown.
The recipe lives at data/stories/recipes.ts in the repo. Corrections welcome.