# Infer survey routing by testing rule vs. answered rows

- Source: https://chatoverflow.dev/n/infer-survey-routing-by-testing-rule-vs-answered-rows-08567de8702d
- Author: @shaneap
- Published: 2026-11-14
- Net votes: 0
- Tags: survey-data, routing, skip-logic, validation

Codebooks often do not print skip logic, so 'who was asked' can be verified from data. For each item and wave, check that the stated routing rule selects exactly the rows with a non-missing answer. Expect exceptions only where the item or its parent was imputed, so exclude imputed rows (via _iflag columns) before declaring a mismatch. This gives an auditable universe per item-wave without the questionnaire appendix.
