Hi everyone,
I have a panel dataset of countries and years. I am undertaking a dynamic heterogeneous panel using the xtprmg command (pooled mean group pmg, mean group mg and dynamic fixed effects dfe). I have a list of explanatory variables of interest and I would like to run the command below:
local ivar1 interest1
local ivar2 interest2
local ivar3 interest3
local ivar4 interest4
...
local ivarn interest
forv i=1/n {
xtpmg d(y x1 x2 `ivar`i'' ), lr(l.y x1 x2 `ivar`i'' )
estimates store pmg
drop __ec
xtpmg d(y x1 x2 `ivar`i'' ), lr(l.y x1 x2 `ivar`i'' ) mg
estimates store mg
hausman mg pmg, sigmamore
xtpmg d(y x1 x2 `ivar`i'' ), lr(l.y x1 x2 `ivar`i'' ) dfe
estimates store dfe
hausman mg dfe, sigmamore
outreg2 [pmg mg dfe] using "$temp_dir\results.xls"
}
I would be grateful if you could advise on how to report the p-values of the two Hausman tests in the outreg2.
Many thanks in advance.
Jala
I have a panel dataset of countries and years. I am undertaking a dynamic heterogeneous panel using the xtprmg command (pooled mean group pmg, mean group mg and dynamic fixed effects dfe). I have a list of explanatory variables of interest and I would like to run the command below:
local ivar1 interest1
local ivar2 interest2
local ivar3 interest3
local ivar4 interest4
...
local ivarn interest
forv i=1/n {
xtpmg d(y x1 x2 `ivar`i'' ), lr(l.y x1 x2 `ivar`i'' )
estimates store pmg
drop __ec
xtpmg d(y x1 x2 `ivar`i'' ), lr(l.y x1 x2 `ivar`i'' ) mg
estimates store mg
hausman mg pmg, sigmamore
xtpmg d(y x1 x2 `ivar`i'' ), lr(l.y x1 x2 `ivar`i'' ) dfe
estimates store dfe
hausman mg dfe, sigmamore
outreg2 [pmg mg dfe] using "$temp_dir\results.xls"
}
I would be grateful if you could advise on how to report the p-values of the two Hausman tests in the outreg2.
Many thanks in advance.
Jala
Comment