Endogenous Switching Regression Models for the Causes and Effects of Discrete Variables November 22, 2019 Mare, Robert, and Christopher WinshipWorking paper no. 1987-32