Hi,
I am trying to do a FE regression using panel data.
When I used this at the national level data with all states (with two different groups of states), everything went well as below
xtreg did popl_ gdp_ hexp_ vaccine_ inf_ edu_ i.year, fe vce (robust)
Fixed-effects (within) regression Number of obs = 171
Group variable: stateid Number of groups = 19
R-squared: Obs per group:
Within = 0.4510 min = 9
Between = 0.2972 avg = 9.0
Overall = 0.2466 max = 9
F(14,18) = 57.40
corr(u_i, Xb) = -0.8675 Prob > F = 0.0000
But when I tried to do this separately for the subgroups, (I used the same command with two different data sets- each one with the data for only one of the groups):
xtreg did popl_ gdp_ hexp_ vaccine_ inf_ edu_ i.year, fe vce (robust)
I get this value : Prob > F= .
output given below
xtreg did popl_ gdp_ hexp_ vaccine_ inf_ edu_ i.year, fe vce (robust)
Fixed-effects (within) regression Number of obs = 72
Group variable: stateid Number of groups = 8
R-squared: Obs per group:
Within = 0.5548 min = 9
Between = 0.2442 avg = 9.0
Overall = 0.1278 max = 9
F(7,7) = .
corr(u_i, Xb) = -0.8825 Prob > F = .
Can someone guide me on this?
I am trying to do a FE regression using panel data.
When I used this at the national level data with all states (with two different groups of states), everything went well as below
xtreg did popl_ gdp_ hexp_ vaccine_ inf_ edu_ i.year, fe vce (robust)
Fixed-effects (within) regression Number of obs = 171
Group variable: stateid Number of groups = 19
R-squared: Obs per group:
Within = 0.4510 min = 9
Between = 0.2972 avg = 9.0
Overall = 0.2466 max = 9
F(14,18) = 57.40
corr(u_i, Xb) = -0.8675 Prob > F = 0.0000
But when I tried to do this separately for the subgroups, (I used the same command with two different data sets- each one with the data for only one of the groups):
xtreg did popl_ gdp_ hexp_ vaccine_ inf_ edu_ i.year, fe vce (robust)
I get this value : Prob > F= .
output given below
xtreg did popl_ gdp_ hexp_ vaccine_ inf_ edu_ i.year, fe vce (robust)
Fixed-effects (within) regression Number of obs = 72
Group variable: stateid Number of groups = 8
R-squared: Obs per group:
Within = 0.5548 min = 9
Between = 0.2442 avg = 9.0
Overall = 0.1278 max = 9
F(7,7) = .
corr(u_i, Xb) = -0.8825 Prob > F = .
Can someone guide me on this?
Comment