We formalize an econometric model for two-sided matching mechanisms in a school choice context, where identification exploits similarity between students who just qualify for a school and those who just fail to qualify for a school. We discuss estimation and inference of the locally linear...