-------------
      name:  <unnamed>
       log:  D:\data1\tutorial\test.smcl
  log type:  smcl
 opened on:  15 Apr 2010, 15:34:41

. clear

. sysuse auto.dta
(1978 Automobile Data)

. describe

Contains data from D:\Program Files\Stata11\ado\base/a/auto.dta
  obs:            74                          1978 Automobile Data
 vars:            12                          13 Apr 2009 17:45
 size:         3,478 (99.9% of memory free)   (_dta has notes)
-------------
              storage  display     value
variable name   type   format      label      variable label
-------------


make              str18    %-18s                        Make and Model


price             int      %8.0gc                       Price


mpg               int      %8.0g                        Mileage (mpg)


rep78             int      %8.0g                        Repair Record 1978


headroom          float    %6.1f                        Headroom (in.)


trunk             int      %8.0g                        Trunk space (cu. ft.)


weight            int      %8.0gc                       Weight (lbs.)


length            int      %8.0g                        Length (in.)


turn              int      %8.0g                        Turn Circle (ft.)


displacement      int      %8.0g                        Displacement (cu. in.)


gear_ratio        float    %6.2f                        Gear Ratio


foreign           byte     %8.0g         origin         Car type


-------------
Sorted by:  foreign

. codebook foreign

-------------
foreignCar type
-------------

                  type:  numeric (byte)
label  :  origin

                 range:  [0,1]                        units:  1
         unique values:  2                        missing .:  0/74

            tabulation:  Freq.   Numeric  Label
                            52         0  Domestic
                            22         1  Foreign

. regress mpg weight foreign

      Source |       SS       df       MS              Number of obs =      74
-------------+------------------------------           F(  2,    71) =   69.75
       Model |   1619.2877     2  809.643849           Prob > F      =  0.0000
    Residual |  824.171761    71   11.608053           R-squared     =  0.6627
-------------+------------------------------           Adj R-squared =  0.6532
       Total |  2443.45946    73  33.4720474           Root MSE      =  3.4071

 -------------+----------------------------------------------------------------
          mpg |      Coef.    Std. Err.       t    P>|t|     [95% Conf. Interval]
 -------------+----------------------------------------------------------------
      weight |   -.0065879    .0006371    -10.34    0.000    -.0078583    -.0053175
     foreign |   -1.650029    1.075994     -1.53    0.130      -3.7955     .4954422
       _cons |     41.6797    2.165547     19.25    0.000     37.36172     45.99768
 -------------+----------------------------------------------------------------

. log close
      name:  <unnamed>
       log:  D:\data1\tutorial\test.smcl
  log type:  smcl
 closed on:  15 Apr 2010, 15:47:52
-------------