I have a panel data N=46, T=4, with time invariant variable. Hausman test tells me I should do fixed effects, but because of the time-invariant I guess I have to do Random effects. The model is heteroscedastic and have serial correlation, based on modifed Wald test and Wooldridge. Thus, I need to use FGLS. Below is what i have done. Can anyone confirm if this looks correct? Is Wooldridge test on 1sr order autocorrelation the same one we are specifying in the xtgls by (corr AR1)? I also tried xtreg re vce (robust) and totally different results. Which one is correct and which one should i use? Any advice how do i pull off FGLS for my model? Thank you very much! I have been working on this for more than a month now...
. xtgls FDI_plus_1_ln GDP_ln TI GC CIT Edu Imp PI Yr15 Yr16 Yr17 Yr18 Yr19, panels(hetero) corr(ar1)
Cross-sectional time-series FGLS regression
Coefficients: generalized least squares
Panels: heteroskedastic
Correlation: common AR(1) coefficient for all panels (0.3361)
Estimated covariances = 46 Number of obs = 276
Estimated autocorrelations = 1 Number of groups = 46
Estimated coefficients = 13 Time periods = 6
Wald chi2(12) = 1431.97
Prob > chi2 = 0.0000
------------------------------------------------------------------------------
FDI_plus_1~n | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
GDP_ln | 2.016305 .1019315 19.78 0.000 1.816523 2.216087
TI | -.0050162 .0075715 -0.66 0.508 -.0198561 .0098236
GC | -.2146487 .096893 -2.22 0.027 -.4045556 -.0247419
CIT | 5.900017 4.376703 1.35 0.178 -2.678164 14.4782
Edu | 14.13463 2.499647 5.65 0.000 9.235416 19.03385
Imp | 1.413051 .9549068 1.48 0.139 -.4585319 3.284634
PI | -.0000446 .0000154 -2.89 0.004 -.0000748 -.0000143
Yr15 | .0166233 .1242356 0.13 0.894 -.2268741 .2601206
Yr16 | .0279643 .1446263 0.19 0.847 -.255498 .3114266
Yr17 | -.1400918 .1546937 -0.91 0.365 -.4432858 .1631022
Yr18 | -.3144913 .1659963 -1.89 0.058 -.6398382 .0108556
Yr19 | -.789393 .175671 -4.49 0.000 -1.133702 -.4450841
_cons | -20.50538 1.113038 -18.42 0.000 -22.68689 -18.32386
------------------------------------------------------------------------------
. xtreg FDI_plus_1_ln GDP_ln TI GC CIT Edu Imp PI Yr15 Yr16 Yr17 Yr18 Yr19, re vce (robust)
Random-effects GLS regression Number of obs = 276
Group variable: ID_States Number of groups = 46
R-sq: Obs per group:
within = 0.0450 min = 6
between = 0.8504 avg = 6.0
overall = 0.7531 max = 6
Wald chi2(12) = 475.61
corr(u_i, X) = 0 (assumed) Prob > chi2 = 0.0000
(Std. Err. adjusted for 46 clusters in ID_States)
------------------------------------------------------------------------------
| Robust
FDI_plus_1~n | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
GDP_ln | 2.242274 .2859811 7.84 0.000 1.681762 2.802787
TI | .0015489 .012926 0.12 0.905 -.0237856 .0268835
GC | -.2401492 .1370945 -1.75 0.080 -.5088495 .028551
CIT | 9.938618 9.922991 1.00 0.317 -9.510088 29.38732
Edu | 9.374441 6.799565 1.38 0.168 -3.952462 22.70134
Imp | -1.002315 2.87342 -0.35 0.727 -6.634114 4.629484
PI | -.0000361 .0000376 -0.96 0.337 -.0001099 .0000376
Yr15 | -.1945159 .1619585 -1.20 0.230 -.5119487 .122917
Yr16 | -.1606619 .1771356 -0.91 0.364 -.5078413 .1865175
Yr17 | -.0735213 .1829888 -0.40 0.688 -.4321728 .2851303
Yr18 | -.3672885 .2175022 -1.69 0.091 -.7935851 .059008
Yr19 | -.8331632 .2848401 -2.93 0.003 -1.39144 -.2748868
_cons | -22.47016 2.594245 -8.66 0.000 -27.55478 -17.38553
-------------+----------------------------------------------------------------
sigma_u | .81412037
sigma_e | .94769178
rho | .4246185 (fraction of variance due to u_i)
------------------------------------------------------------------------------
Related Posts with FGLS for panel data
SIC codes matchingHi, I want to match the SIC codes of the target and acquirer using SDC data (SIC codes). I already d…
Correction for Probit with FE (Cross-section) - Incidental parametersDear all, I am running a probit model (since my dependent variable is binary) using Fixed Effects (…
stpm2 dfHello, I would like to analyze through a flexible parametric survival models because Cox's assumpti…
New package on SSC: peerreviewThanks to Kit Baum, a new package -peerreview- is now available on SSC. -peerreview- randomly assig…
Correlation of one variable across countries in Panel DataHi all, I am working with a Panel-Data set that includes a number of variables (e.g. Credit, GDP) a…
Subscribe to:
Post Comments (Atom)
0 Response to FGLS for panel data
Post a Comment