ESSAYS IN ECONOMETRICS: GROUP HETEROGENEITY AND MISSPECIFICATION