Essays on heterogeneous large panel data models