Dear all,
I am currently run a regression with -xtivreg- to study the long-term effect with IVFE and logged model. However, I find my the results are different in xtivreg2 first stage and only xtreg first stage. The results are like:
xtivreg disease L1.age L1.age2 L1.inter1 L1.inter2 L1.marital (L1.x = L1.indicator) i.wave if L1.age>=55 & L1.age<=75 & labor_force==1, first fe vce(r)
First-stage within regression
Fixed-effects (within) regression Number of obs = 13,607
Group variable: newid Number of groups = 9,824
R-squared: Obs per group:
Within = 0.1613 min = 1
Between = 0.0201 avg = 1.4
Overall = 0.0068 max = 2
F(7,9823) = 55.07
corr(u_i, Xb) = -0.3467 Prob > F = 0.0000
(Std. err. adjusted for 9,824 clusters in newid)
------------------------------------------------------------------------------
| Robust
__000004 | Coefficient std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
L1.age | .0313144 .0170861 1.83 0.067 -.0021778 .0648066
|
L1.age2 | .0042818 .001345 3.18 0.001 .0016453 .0069182
|
L1. inter1| -.0517112 .0138465 -3.73 0.000 -.0788532 -.0245691
|
L1.inter2 | -.0072432 .0014281 -5.07 0.000 -.0100425 -.0044438
|
L1. marital| -.0054045 .035118 -0.15 0.878 -.074243 .063434
|
wave |
2 | 0 (empty)
5 | 0 (empty)
6 | -.1181368 .0220845 -5.35 0.000 -.1614269 -.0748466
7 | 0 (omitted)
|
L1.indicator | .1362696 .0235653 5.78 0.000 .0900768 .1824625
|
_cons | .843435 .047912 17.60 0.000 .7495177 .9373523
-------------+----------------------------------------------------------------
sigma_u | .48187339
sigma_e | .18851021
rho | .86727289 (fraction of variance due to u_i)
------------------------------------------------------------------------------
Fixed-effects (within) IV regression Number of obs = 41,102
Group variable: newid Number of groups = 24,212
R-squared: Obs per group:
Within = 0.0580 min = 1
Between = 0.0105 avg = 1.7
Overall = 0.0168 max = 4
Wald chi2(9) = 6035.37
corr(u_i, Xb) = 0.0066 Prob > chi2 = 0.0000
(Std. err. adjusted for 24,212 clusters in newid)
------------------------------------------------------------------------------
| Robust
disease | Coefficient std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
x |
L1. | .0696582 .03052 2.28 0.022 .0098401 .1294764
|
age |
L1. | -.0023588 .00477 -0.49 0.621 -.0117078 .0069903
|
age2 |
L1. | .0001673 .0003024 0.55 0.580 -.0004254 .0007599
|
inter1 |
L1. | -.0002404 .003623 -0.07 0.947 -.0073413 .0068605
|
inter2 |
L1. | .0009104 .0005197 1.75 0.080 -.0001083 .0019291
|
marital |
L1. | -.0050013 .0111639 -0.45 0.654 -.0268821 .0168796
|
wave |
5 | .0400923 .0202437 1.98 0.048 .0004152 .0797693
6 | .0575173 .0257137 2.24 0.025 .0071193 .1079152
7 | .0726076 .0313591 2.32 0.021 .0111449 .1340703
|
_cons | .0428386 .0272541 1.57 0.116 -.0105785 .0962558
-------------+----------------------------------------------------------------
sigma_u | .3393069
sigma_e | .14958866
rho | .8372669 (fraction of variance due to u_i)
------------------------------------------------------------------------------
Instrumented: L.x
Instruments: L.age L.age2 L.inter1 L.inter2 L.marital 5.wave
6.wave 7.wave L.indicator
If I only run the first stage with xtreg, the result is following:
xtreg L1.x L1.age L1.age2 L1.inter1 L1.inter2 L1.marital L1.indicator i.wave if L1.age>=55 & L1.age<=75 & labor_force==1,fe vce(r)
Fixed-effects (within) regression Number of obs = 41,124
Group variable: newid Number of groups = 24,222
R-squared: Obs per group:
Within = 0.4045 min = 1
Between = 0.4217 avg = 1.7
Overall = 0.4143 max = 4
F(9,24221) = 669.45
corr(u_i, Xb) = 0.2598 Prob > F = 0.0000
(Std. err. adjusted for 24,222 clusters in newid)
------------------------------------------------------------------------------
| Robust
L.x | Coefficient std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
age |
L1. | .0655449 .0070952 9.24 0.000 .0516379 .0794519
|
age2 |
L1. | .0037481 .0004888 7.67 0.000 .00279 .0047062
|
inter1 |
L1. | -.0500509 .0062653 -7.99 0.000 -.0623313 -.0377705
|
inter2 |
L1. | -.0067018 .0005848 -11.46 0.000 -.0078481 -.0055555
|
marital |
L1. | .0092198 .0173753 0.53 0.596 -.0248368 .0432764
|
indicator |
L1. | .1974026 .0129819 15.21 0.000 .1719572 .2228481
|
wave |
5 | .1459084 .0324698 4.49 0.000 .0822656 .2095512
6 | .2091353 .0407499 5.13 0.000 .129263 .2890076
7 | .2750966 .0494694 5.56 0.000 .1781335 .3720597
|
_cons | .4403559 .0359106 12.26 0.000 .3699688 .510743
-------------+----------------------------------------------------------------
sigma_u | .36985621
sigma_e | .25082088
rho | .68497935 (fraction of variance due to u_i)
------------------------------------------------------------------------------
I really cannot figure out why my sample size changes that much and why the results are different. I would appreciate if anyone can help me with it. Thank you so so so so much!
I am currently run a regression with -xtivreg- to study the long-term effect with IVFE and logged model. However, I find my the results are different in xtivreg2 first stage and only xtreg first stage. The results are like:
xtivreg disease L1.age L1.age2 L1.inter1 L1.inter2 L1.marital (L1.x = L1.indicator) i.wave if L1.age>=55 & L1.age<=75 & labor_force==1, first fe vce(r)
First-stage within regression
Fixed-effects (within) regression Number of obs = 13,607
Group variable: newid Number of groups = 9,824
R-squared: Obs per group:
Within = 0.1613 min = 1
Between = 0.0201 avg = 1.4
Overall = 0.0068 max = 2
F(7,9823) = 55.07
corr(u_i, Xb) = -0.3467 Prob > F = 0.0000
(Std. err. adjusted for 9,824 clusters in newid)
------------------------------------------------------------------------------
| Robust
__000004 | Coefficient std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
L1.age | .0313144 .0170861 1.83 0.067 -.0021778 .0648066
|
L1.age2 | .0042818 .001345 3.18 0.001 .0016453 .0069182
|
L1. inter1| -.0517112 .0138465 -3.73 0.000 -.0788532 -.0245691
|
L1.inter2 | -.0072432 .0014281 -5.07 0.000 -.0100425 -.0044438
|
L1. marital| -.0054045 .035118 -0.15 0.878 -.074243 .063434
|
wave |
2 | 0 (empty)
5 | 0 (empty)
6 | -.1181368 .0220845 -5.35 0.000 -.1614269 -.0748466
7 | 0 (omitted)
|
L1.indicator | .1362696 .0235653 5.78 0.000 .0900768 .1824625
|
_cons | .843435 .047912 17.60 0.000 .7495177 .9373523
-------------+----------------------------------------------------------------
sigma_u | .48187339
sigma_e | .18851021
rho | .86727289 (fraction of variance due to u_i)
------------------------------------------------------------------------------
Fixed-effects (within) IV regression Number of obs = 41,102
Group variable: newid Number of groups = 24,212
R-squared: Obs per group:
Within = 0.0580 min = 1
Between = 0.0105 avg = 1.7
Overall = 0.0168 max = 4
Wald chi2(9) = 6035.37
corr(u_i, Xb) = 0.0066 Prob > chi2 = 0.0000
(Std. err. adjusted for 24,212 clusters in newid)
------------------------------------------------------------------------------
| Robust
disease | Coefficient std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
x |
L1. | .0696582 .03052 2.28 0.022 .0098401 .1294764
|
age |
L1. | -.0023588 .00477 -0.49 0.621 -.0117078 .0069903
|
age2 |
L1. | .0001673 .0003024 0.55 0.580 -.0004254 .0007599
|
inter1 |
L1. | -.0002404 .003623 -0.07 0.947 -.0073413 .0068605
|
inter2 |
L1. | .0009104 .0005197 1.75 0.080 -.0001083 .0019291
|
marital |
L1. | -.0050013 .0111639 -0.45 0.654 -.0268821 .0168796
|
wave |
5 | .0400923 .0202437 1.98 0.048 .0004152 .0797693
6 | .0575173 .0257137 2.24 0.025 .0071193 .1079152
7 | .0726076 .0313591 2.32 0.021 .0111449 .1340703
|
_cons | .0428386 .0272541 1.57 0.116 -.0105785 .0962558
-------------+----------------------------------------------------------------
sigma_u | .3393069
sigma_e | .14958866
rho | .8372669 (fraction of variance due to u_i)
------------------------------------------------------------------------------
Instrumented: L.x
Instruments: L.age L.age2 L.inter1 L.inter2 L.marital 5.wave
6.wave 7.wave L.indicator
If I only run the first stage with xtreg, the result is following:
xtreg L1.x L1.age L1.age2 L1.inter1 L1.inter2 L1.marital L1.indicator i.wave if L1.age>=55 & L1.age<=75 & labor_force==1,fe vce(r)
Fixed-effects (within) regression Number of obs = 41,124
Group variable: newid Number of groups = 24,222
R-squared: Obs per group:
Within = 0.4045 min = 1
Between = 0.4217 avg = 1.7
Overall = 0.4143 max = 4
F(9,24221) = 669.45
corr(u_i, Xb) = 0.2598 Prob > F = 0.0000
(Std. err. adjusted for 24,222 clusters in newid)
------------------------------------------------------------------------------
| Robust
L.x | Coefficient std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
age |
L1. | .0655449 .0070952 9.24 0.000 .0516379 .0794519
|
age2 |
L1. | .0037481 .0004888 7.67 0.000 .00279 .0047062
|
inter1 |
L1. | -.0500509 .0062653 -7.99 0.000 -.0623313 -.0377705
|
inter2 |
L1. | -.0067018 .0005848 -11.46 0.000 -.0078481 -.0055555
|
marital |
L1. | .0092198 .0173753 0.53 0.596 -.0248368 .0432764
|
indicator |
L1. | .1974026 .0129819 15.21 0.000 .1719572 .2228481
|
wave |
5 | .1459084 .0324698 4.49 0.000 .0822656 .2095512
6 | .2091353 .0407499 5.13 0.000 .129263 .2890076
7 | .2750966 .0494694 5.56 0.000 .1781335 .3720597
|
_cons | .4403559 .0359106 12.26 0.000 .3699688 .510743
-------------+----------------------------------------------------------------
sigma_u | .36985621
sigma_e | .25082088
rho | .68497935 (fraction of variance due to u_i)
------------------------------------------------------------------------------
I really cannot figure out why my sample size changes that much and why the results are different. I would appreciate if anyone can help me with it. Thank you so so so so much!
Comment