Kidaya Ntoko, how to do the Hausman test after xtpmg is explained in Blackburn & Frank (2007), I explain how to the do hausman test after xtdcce2 in Ditzen (2018). Note however that the Hausman test has some problems in large N, large T panels, see Pesaran & Yamagata (2008).
References:
Blackburne, E. F., & Frank, M. W. (2007). Estimation of nonstationary heterogeneous panels. The Stata Journal, 7(2), 197–208.
Ditzen, J. (2018). Estimating dynamic common-correlated effects in Stata. The Stata Journal, 18(3), 585–617.
Pesaran, M. H., and T. Yamagata. (2008). Testing slope homogeneity in large panels. Journal of Econometrics 142(1): 50–93.
References:
Blackburne, E. F., & Frank, M. W. (2007). Estimation of nonstationary heterogeneous panels. The Stata Journal, 7(2), 197–208.
Ditzen, J. (2018). Estimating dynamic common-correlated effects in Stata. The Stata Journal, 18(3), 585–617.
Pesaran, M. H., and T. Yamagata. (2008). Testing slope homogeneity in large panels. Journal of Econometrics 142(1): 50–93.
Comment