UNIVERSITY OF CALIFORNIA, LOS ANGELES
Department of Economics

Economics 143 (Cameron) - Applied Regression Analysis

Classroom Handout #10: SAS Regression Output


Here is a SAS program (UNIX version) that uses the same mpc.dat data set we used in the Guided Tour of SHAZAM Output

libname main '/u/econ/cameron';
options linesize=80 nodate ;
filename data 'mpc.dat';
data mpcdata;
  infile data;
input
  income expend;
label income='student income level'
      expend='student expenditure level';
proc means;
proc reg;
 model expend=income;
endsas;

Here is the SAS output produced by this program. You may wish to compare the results from this software with those produced by SHAZAM.

                                 The SAS System                                1

      Variable  Label                       N          Mean       Std Dev
      -------------------------------------------------------------------
      INCOME    student income level       14   155.0000000    41.2776714
      EXPEND    student expenditure level  14   125.5714286    35.2239304
      -------------------------------------------------------------------

        Variable  Label                           Minimum       Maximum
        ---------------------------------------------------------------
        INCOME    student income level        100.0000000   220.0000000
        EXPEND    student expenditure level    80.0000000   180.0000000
        ---------------------------------------------------------------
                                 The SAS System                                2

Model: MODEL1  
Dependent Variable: EXPEND     student expenditure level               

                              Analysis of Variance

                                 Sum of         Mean
        Source          DF      Squares       Square      F Value       Prob>F

        Model            1  11485.44018  11485.44018       29.678       0.0001
        Error           12   4643.98839    386.99903
        C Total         13  16129.42857

            Root MSE      19.67229     R-square       0.7121
            Dep Mean     125.57143     Adj R-sq       0.6881
            C.V.          15.66622

                              Parameter Estimates

                       Parameter      Standard    T for H0:               
      Variable  DF      Estimate         Error   Parameter=0    Prob > |T|

      INTERCEP   1     13.957433   21.15186357         0.660        0.5218
      INCOME     1      0.720090    0.13218071         5.448        0.0001

                    Variable
      Variable  DF     Label

      INTERCEP   1  Intercept                               
      INCOME     1  student income level                    

COURSE OUTLINE LECTURE OUTLINES PROBLEM SETS PROBLEM SOLUTIONS COMPUTER LABS
SHAZAM EXAMPLES DATA SETS ONLINE QUIZZES GRAPHICS HANDOUTS
Updated: February 2, 1998
Prepared by: Trudy Ann Cameron