soe_em_sh already defined
r(110);
yeardum1 already defined
r(110);
请问:以上错误或问题如何解决?
*%%%%%%%%%%%%%%%%%%
.
. * data generation
.
. *%%%%%%%%%%%%%%%%%%
.
.
.
. gen soe_em_sh = soe_em/total_em
soe_em_sh already defined
r(110);
.
. gen va_pw = total_va/total_em
va_pw already defined
r(110);
.
.
.
. tab year, gen(yeardum)
year | Freq. Percent Cum.
------------+-----------------------------------
2001 | 37 16.67 16.67
2002 | 37 16.67 33.33
2003 | 37 16.67 50.00
2005 | 37 16.67 66.67
2006 | 37 16.67 83.33
2007 | 37 16.67 100.00
------------+-----------------------------------
Total | 222 100.00
yeardum1 already defined
r(110);
.
.
.
. tsset id year
panel variable: id (strongly balanced)
time variable: year, 2001 to 2007, but with gaps
delta: 1 unit
.
.
.
. gen va_growth = (va_pw-L.va_pw)/L.va_pw*100
va_growth already defined
r(110);
.
.
.
. gen nonsoe_em_sh = 100 - soe_em_sh*100
nonsoe_em_sh already defined
r(110);
.
. gen nonsoe_em_sh_diff = nonsoe_em_sh - L.nonsoe_em_sh
nonsoe_em_sh_diff already defined
r(110);
.
.
.
. *************
.
. * regression
.
. *************
.
.
.
. reg va_growth nonsoe_em_sh_diff yeardum* if id >= 7 & id <= 34, clust
> er(id) robust
note: yeardum1 omitted because of collinearity
note: yeardum4 omitted because of collinearity
note: yeardum6 omitted because of collinearity
Linear regression Number of obs =
> 112
F( 4, 27) =
> 6.44
Prob > F =
> 0.0009
R-squared =
> 0.2104
Root MSE =
> 8.2037
(Std. Err. adjusted for 28 clusters
> in id)
-----------------------------------------------------------------------
> -------
| Robust
va_growth | Coef. Std. Err. t P>|t| [95% Conf. In
> terval]
-------------+---------------------------------------------------------
> -------
nonsoe_em_~f | 1.425684 .4785462 2.98 0.006 .4437888
> 2.40758
yeardum1 | (omitted)
yeardum2 | -10.68388 2.46168 -4.34 0.000 -15.73483 -5
> .632928
yeardum3 | -5.742956 2.333601 -2.46 0.021 -10.53111 -.
> 9548016
yeardum4 | (omitted)
yeardum5 | -2.087157 1.874801 -1.11 0.275 -5.93393 1
> .759617
yeardum6 | (omitted)
_cons | 18.30978 1.549779 11.81 0.000 15.12989 2
> 1.48966
-----------------------------------------------------------------------
> -------
.
. reg va_growth nonsoe_em_sh_diff L.va_pw yeardum* if id >= 7 & id <= 3
> 4, cluster(id) robust
note: yeardum1 omitted because of collinearity
note: yeardum4 omitted because of collinearity
note: yeardum6 omitted because of collinearity
Linear regression Number of obs =
> 112
F( 5, 27) =
> 18.13
Prob > F =
> 0.0000
R-squared =
> 0.2577
Root MSE =
> 7.9915
(Std. Err. adjusted for 28 clusters
> in id)
-----------------------------------------------------------------------
> -------
| Robust
va_growth | Coef. Std. Err. t P>|t| [95% Conf. In
> terval]
-------------+---------------------------------------------------------
> -------
nonsoe_em_~f | 1.59726 .3571964 4.47 0.000 .8643536 2
> .330166
|
va_pw |
L1. | .1282623 .015193 8.44 0.000 .0970889 .
> 1594358
|
yeardum1 | (omitted)
yeardum2 | -10.01552 2.221582 -4.51 0.000 -14.57383 -5
> .457211
yeardum3 | -5.281558 2.06656 -2.56 0.017 -9.521788 -1
> .041328
yeardum4 | (omitted)
yeardum5 | -1.851206 1.92793 -0.96 0.345 -5.806992
> 2.10458
yeardum6 | (omitted)
_cons | 15.98687 1.336928 11.96 0.000 13.24372 1
> 8.73002
-----------------------------------------------------------------------
> -------


雷达卡



京公网安备 11010802022788号







