test performs
Wald tests of simple and composite linear hypotheses about
the parameters of the most recently fit model.
如下面一个回归模型
- . clear
- . sysuse auto
- (1978 Automobile Data)
- . reg price foreign mpg displ
- Source | SS df MS Number of obs = 74
- -------------+------------------------------ F( 3, 70) = 20.13
- Model | 294104790 3 98034929.9 Prob > F = 0.0000
- Residual | 340960606 70 4870865.81 R-squared = 0.4631
- -------------+------------------------------ Adj R-squared = 0.4401
- Total | 635065396 73 8699525.97 Root MSE = 2207
- ------------------------------------------------------------------------------
- price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
- -------------+----------------------------------------------------------------
- foreign | 3545.484 712.7763 4.97 0.000 2123.897 4967.072
- mpg | -98.88559 63.17063 -1.57 0.122 -224.8754 27.10426
- displacement | 22.40416 4.634239 4.83 0.000 13.16146 31.64686
- _cons | 2796.91 2137.873 1.31 0.195 -1466.943 7060.763
- ------------------------------------------------------------------------------
- . test foreign+mpg=1
- ( 1) foreign + mpg = 1
- F( 1, 70) = 22.90
- Prob > F = 0.0000
复制代码