Heterogeneous endogeneity