What is the difference of pmg and PCCE function in package PLM? details of both is almost same in the description. I wanted to perform mg, pmg and CCE mg test on panel data using plm function. I thought pmg and pcce are the right function. can someone please confirm which function I shall use?
The reference provided for PMG function is of 2006, which talks about Common correlated effect (CCE) mean group or pool. I woder if PMG is without CCE in plm package or with CCE.
From the
plmpackages first vignette we see both function can estimate the common correlated effects MG (CCEMG) model (and also from?plm::pmgand?plm::pcce):So, let's see if we can get the same estimates from both function with the parametrisation to estimate a "CCEMG" model:
You get the same results.
pcce(., model = "mg")andpmg(., model = "cmg")estimate the same model but internally in a different way, hence coefficients might slightly diverge due to numerical precision when you look at many digits.In the example output above, I have only stated the coefficents common to both model objects. For the "
pmg-way" (objectpmgccemgmod), you get an intercept and the coefficients of auxiluary variables used for that estimation approach as well, so the full picture is: