This function performs Hausman specification test for panel glm.
latin1
htest_pglm(RE, FE, re.method)
Arguments
RE: Random effect objects. Support pglm, glmer, glmmTMB
FE: Fixed effect objects.
re.method: Method that used to estimate the random effect estimation, in addition to "pglm", it also supports "glmmTMB" of package glmmTMB, and "glmer" of package lme4.
References
Hausman J.A. (1978). Specification Tests in Econometrics. Econometrica, 46, 1251-1271.