Liz's Stata Guide

line

This command draws straight or curved lines. It can be used to graph the results of a regression.

Needs to be rewritten

Example

. drop if earndad > 10000
(2 observations deleted)

. reg award earndad, r

Regression with robust standard errors                 Number of obs =     279
                                                       F(  1,   277) =   43.07
                                                       Prob > F      =  0.0000
                                                       R-squared     =  0.2979
                                                       Root MSE      =  200.91

------------------------------------------------------------------------------
             |               Robust
       award |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     earndad |   .0770272   .0117365     6.56   0.000     .0539231    .1001313
       _cons |   265.7285   14.62653    18.17   0.000     236.9352    294.5218
------------------------------------------------------------------------------

. predict award_hat
(option xb assumed; fitted values)

. line award_hat earndad, sort

Options

Notes

contact: djiboliz@gmail.com
last modified: 17 April 2007