Three schools where 100% of teachers responded to the survey — and what they said
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
Filtered schools with 100% teacher-survey response rate (a rare achievement), then read their survey responses on trust, safety, and bullying.
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
Look for survey_teacher_response_rate ≥ 1.0 (or ≥0.99 after rounding). Pull all survey items for those schools.
Caveats
Schools that get 100% teacher response are often the smallest schools (fewer teachers to follow up with). Their survey reads aren't representative of larger schools.
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.