1. 其实你应该直接问你的老师。2. 类似 (请注意 i.year)
- . webuse grunfeld, clear
- .
- . reg invest mvalue kstoc i.year, robust
- Linear regression Number of obs = 200
- F(21, 178) = 23.74
- Prob > F = 0.0000
- R-squared = 0.8170
- Root MSE = 98.099
- ------------------------------------------------------------------------------
- | Robust
- invest | Coef. Std. Err. t P>|t| [95% Conf. Interval]
- -------------+----------------------------------------------------------------
- mvalue | .1167978 .0066825 17.48 0.000 .1036107 .1299849
- kstock | .2197066 .0575203 3.82 0.000 .1061972 .333216
- |
- year |
- 1936 | -17.21234 32.30392 -0.53 0.595 -80.96027 46.53559
- 1937 | -34.49127 39.41671 -0.88 0.383 -112.2755 43.29291
- 1938 | -28.44276 26.44632 -1.08 0.284 -80.63142 23.74589
- 1939 | -56.24304 30.29841 -1.86 0.065 -116.0334 3.54727
- 1940 | -30.50473 26.88752 -1.13 0.258 -83.56404 22.55459
- 1941 | -2.627113 27.07946 -0.10 0.923 -56.06521 50.81098
- 1942 | -1.422156 27.25112 -0.05 0.958 -55.199 52.35469
- 1943 | -21.80127 26.90696 -0.81 0.419 -74.89895 31.29641
- 1944 | -22.11735 25.50119 -0.87 0.387 -72.44091 28.20622
- 1945 | -33.59647 24.79854 -1.35 0.177 -82.53343 15.3405
- 1946 | -7.028064 31.03571 -0.23 0.821 -68.27333 54.2172
- 1947 | -5.246123 31.18714 -0.17 0.867 -66.79023 56.29799
- 1948 | -3.919472 39.34635 -0.10 0.921 -81.56481 73.72587
- 1949 | -28.79332 35.41855 -0.81 0.417 -98.68761 41.10098
- 1950 | -28.35409 38.03333 -0.75 0.457 -103.4083 46.70015
- 1951 | -11.67194 45.29242 -0.26 0.797 -101.0511 77.70727
- 1952 | -5.613218 50.98644 -0.11 0.912 -106.2289 95.00245
- 1953 | 2.448996 52.49263 0.05 0.963 -101.139 106.037
- 1954 | -12.31488 41.68043 -0.30 0.768 -94.56625 69.9365
- |
- _cons | -23.57497 14.25381 -1.65 0.100 -51.70316 4.553223
- ------------------------------------------------------------------------------
复制代码