黃河泉 发表于 2019-8-24 10:55 
你的指令有误!应该是
regress price c.c_length##c.c_mpg
和
regress price c_length c_mpg IT
是一样的
- . regress price c_length c_mpg IT
- Source | SS df MS Number of obs = 74
- -------------+---------------------------------- F(3, 70) = 9.93
- Model | 189535455 3 63178485 Prob > F = 0.0000
- Residual | 445529941 70 6364713.45 R-squared = 0.2985
- -------------+---------------------------------- Adj R-squared = 0.2684
- Total | 635065396 73 8699525.97 Root MSE = 2522.8
- ------------------------------------------------------------------------------
- price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
- -------------+----------------------------------------------------------------
- c_length | -1.936047 23.60927 -0.08 0.935 -49.02326 45.15116
- c_mpg | -307.6969 98.46623 -3.12 0.003 -504.0816 -111.3122
- IT | -7.117735 2.704892 -2.63 0.010 -12.51247 -1.722998
- _cons | 5445.451 401.0421 13.58 0.000 4645.598 6245.304
- ------------------------------------------------------------------------------
- .
- . regress price c.c_length##c.c_mpg
- Source | SS df MS Number of obs = 74
- -------------+---------------------------------- F(3, 70) = 9.93
- Model | 189535456 3 63178485.2 Prob > F = 0.0000
- Residual | 445529940 70 6364713.44 R-squared = 0.2985
- -------------+---------------------------------- Adj R-squared = 0.2684
- Total | 635065396 73 8699525.97 Root MSE = 2522.8
- ------------------------------------------------------------------------------------
- price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
- -------------------+----------------------------------------------------------------
- c_length | -1.936048 23.60927 -0.08 0.935 -49.02326 45.15116
- c_mpg | -307.6969 98.46623 -3.12 0.003 -504.0816 -111.3122
- |
- c.c_length#c.c_mpg | -7.117735 2.704892 -2.63 0.010 -12.51247 -1.722998
- |
- _cons | 5445.451 401.0421 13.58 0.000 4645.597 6245.304
- ------------------------------------------------------------------------------------
复制代码