Implementing Factor Models for Unobserved Heterogeneity in Stata. (March 2016)