. sysuse auto, clear
(1978 Automobile Data)
. tab rep78, gen(repair)
Repair |
Record 1978 | Freq. Percent Cum.
------------+-----------------------------------
1 | 2 2.90 2.90
2 | 8 11.59 14.49
3 | 30 43.48 57.97
4 | 18 26.09 84.06
5 | 11 15.94 100.00
------------+-----------------------------------
Total | 69 100.00
. regress mpg foreign weight repair1-repair4
Source | SS df MS Number of obs = 69
-------------+------------------------------ F( 6, 62) = 23.55
Model | 1626.43408 6 271.072346 Prob > F = 0.0000
Residual | 713.768822 62 11.5124004 R-squared = 0.6950
-------------+------------------------------ Adj R-squared = 0.6655
Total | 2340.2029 68 34.4147485 Root MSE = 3.393
------------------------------------------------------------------------------
mpg | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
foreign | -2.923268 1.342996 -2.18 0.033 -5.607878 -.238658
weight | -.0062911 .000687 -9.16 0.000 -.0076644 -.0049177
repair1 | -3.865535 2.770732 -1.40 0.168 -9.404149 1.67308
repair2 | -4.144179 1.836986 -2.26 0.028 -7.816262 -.4720964
repair3 | -3.887955 1.459016 -2.66 0.010 -6.804485 -.971424
repair4 | -3.184177 1.356765 -2.35 0.022 -5.896311 -.4720429
_cons | 44.36781 2.57849 17.21 0.000 39.21348 49.52214
------------------------------------------------------------------------------
. outreg2 weight foreign using d:\myfile, drop(repair*)
D:\programs\Stata12\ado\stbplus/o/outreg2.ado
dir : seeout
.
end of do-file
|