This paper establishes two sets of assumptions under which the two stage least squares estimator consistently estimates the average treatment effect in a random coefficient model. The key feature of the model is that an endogenous explanatory variable interacts with unobserved heterogeneity. (C) 1997 Elsevier Science S.A.