|
. clear
. sysuse auto
(1978 Automobile Data)
. reg price rep78 c.weight#c.length
Source | SS df MS Number of obs = 69
-------------+------------------------------ F( 2, 66) = 16.94
Model | 195662676 2 97831337.9 Prob > F = 0.0000
Residual | 381134283 66 5774761.86 R-squared = 0.3392
-------------+------------------------------ Adj R-squared = 0.3192
Total | 576796959 68 8482308.22 Root MSE = 2403.1
-----------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
------------------+----------------------------------------------------------------
rep78 | 705.7891 317.1287 2.23 0.029 72.62131 1338.957
|
c.weight#c.length | .0084306 .0014484 5.82 0.000 .0055387 .0113225
|
_cons | -1212.802 1630.628 -0.74 0.460 -4468.456 2042.851
-----------------------------------------------------------------------------------
. gen weightleigth= weight* length
. reg price rep78 weightleigth
Source | SS df MS Number of obs = 69
-------------+------------------------------ F( 2, 66) = 16.94
Model | 195662676 2 97831337.9 Prob > F = 0.0000
Residual | 381134283 66 5774761.86 R-squared = 0.3392
-------------+------------------------------ Adj R-squared = 0.3192
Total | 576796959 68 8482308.22 Root MSE = 2403.1
------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
rep78 | 705.7891 317.1287 2.23 0.029 72.62131 1338.957
weightleigth | .0084306 .0014484 5.82 0.000 .0055387 .0113225
_cons | -1212.802 1630.628 -0.74 0.460 -4468.456 2042.851
------------------------------------------------------------------------------
.
|