We extend the control function approach of Altonji and Mansfield (2018) to allow for multiple group levels and complementarities. Our analysis provides a foundation for causal interpretation of multilevel mixed effects models in the presence of sorting. In our empirical application, we obtain...