Hello, everyone!
I do not understund why the output shows me minimum number of observation that equels 5, however, I establish condition consider only those where it is more that 10. COuld enyone help me? I am using xtreg in Stata 13.1.
Here I create variable that counts observations per group (which is country)
This is the model I'd like to estimete
I do not understund why the output shows me minimum number of observation that equels 5, however, I establish condition consider only those where it is more that 10. COuld enyone help me? I am using xtreg in Stata 13.1.
Here I create variable that counts observations per group (which is country)
Code:
egen gdp_count = count(l_gdp_percap), by(ISO3N)
Code:
xtreg l_gdp_percap ib1.reg_magnr L(1/3).l_gdp_percap ib0.persol2 i.decade if gdp_count>10, fe cl(ISO3N)
PHP Code:
Fixed-effects (within) regression Number of obs = 3409
Group variable: ISO3N Number of groups = 117
R-sq: within = 0.9654 Obs per group: min = 2
between = 0.9997 avg = 29.1
overall = 0.9968 max = 50
F(14,116) = 3000.34
corr(u_i, Xb) = 0.8411 Prob > F = 0.0000
(Std. Err. adjusted for 117 clusters in ISO3N)
-------------------------------------------------------------------------------
| Robust
l_gdp_percap | Coef. Std. Err. t P>|t| [95% Conf. Interval]
--------------+----------------------------------------------------------------
reg_magnr |
Military | -.0243957 .0104707 -2.33 0.022 -.0451341 -.0036572
Morchy | .0055622 .0160169 0.35 0.729 -.0261613 .0372857
Multiparty | -.0165441 .009361 -1.77 0.080 -.0350848 .0019965
Single Party | -.0172222 .0124459 -1.38 0.169 -.0418729 .0074285
|
l_gdp_percap |
L1. | 1.209961 .0800573 15.11 0.000 1.051398 1.368525
L2. | -.1723034 .0931483 -1.85 0.067 -.3567953 .0121885
L3. | -.0700679 .0287383 -2.44 0.016 -.1269876 -.0131481
|
persol2 |
1 | .0149075 .0070386 2.12 0.036 .0009666 .0288484
2 | .0141714 .0089652 1.58 0.117 -.0035853 .0319281
|
decade |
1970 | .0029361 .0036517 0.80 0.423 -.0042966 .0101689
1980 | -.0088728 .0044202 -2.01 0.047 -.0176276 -.0001179
1990 | -.0090631 .0050484 -1.80 0.075 -.0190621 .0009359
2000 | .0154033 .0073271 2.10 0.038 .000891 .0299157
2010 | .0184441 .0089666 2.06 0.042 .0006846 .0362035
|
_cons | .2525653 .0527426 4.79 0.000 .1481018 .3570287
--------------+----------------------------------------------------------------
sigma_u | .04344562
sigma_e | .06886767
rho | .28468218 (fraction of variance due to u_i)
-------------------------------------------------------------------------------
.
Comment