. sysuse auto,clear
(1978 Automobile Data)
. replace price=. in 1/12
(12 real changes made, 12 to missing)
. reg price mpg headroom weight length
Source | SS df MS Number of obs = 62
-------------+------------------------------ F( 4, 57) = 8.44
Model | 184081086 4 46020271.5 Prob > F = 0.0000
Residual | 310942961 57 5455139.66 R-squared = 0.3719
-------------+------------------------------ Adj R-squared = 0.3278
Total | 495024047 61 8115148.31 Root MSE = 2335.6
------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
mpg | -103.8494 83.52006 -1.24 0.219 -271.0955 63.39659
headroom | -511.539 402.951 -1.27 0.209 -1318.435 295.3565
weight | 4.69424 1.27251 3.69 0.001 2.146083 7.242397
length | -118.1443 46.69946 -2.53 0.014 -211.6584 -24.63024
_cons | 17986.93 6630.417 2.71 0.009 4709.746 31264.11
------------------------------------------------------------------------------
. estat vif
Variable | VIF 1/VIF
-------------+----------------------
length | 12.36 0.080908
weight | 11.22 0.089111
mpg | 2.80 0.356921
headroom | 1.33 0.753352
-------------+----------------------
Mean VIF | 6.93
. drop if price==.
(12 observations deleted)
. reg price mpg headroom weight length
Source | SS df MS Number of obs = 62
-------------+------------------------------ F( 4, 57) = 8.44
Model | 184081086 4 46020271.5 Prob > F = 0.0000
Residual | 310942961 57 5455139.66 R-squared = 0.3719
-------------+------------------------------ Adj R-squared = 0.3278
Total | 495024047 61 8115148.31 Root MSE = 2335.6
------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
mpg | -103.8494 83.52006 -1.24 0.219 -271.0955 63.39659
headroom | -511.539 402.951 -1.27 0.209 -1318.435 295.3565
weight | 4.69424 1.27251 3.69 0.001 2.146083 7.242397
length | -118.1443 46.69946 -2.53 0.014 -211.6584 -24.63024
_cons | 17986.93 6630.417 2.71 0.009 4709.746 31264.11
------------------------------------------------------------------------------
. estat vif
Variable | VIF 1/VIF
-------------+----------------------
length | 12.36 0.080908
weight | 11.22 0.089111
mpg | 2.80 0.356921
headroom | 1.33 0.753352
-------------+----------------------
Mean VIF | 6.93
.
|