GLM Syntax - Example 4: Multiple Regression

This example illustrates the specification for a multiple regression analysis. You can run this example with the example data file Poverty.sta.  Note that brief descriptive comments are enclosed in curly brackets. See also the General Regression Models (GRM) module for additional options and specialized regression statistics (e.g., stepwise, best subset, etc.).

GLM;

{ Dependent variable list: }

   DEPENDENT = PT_POOR;

{ Continuous predictor variables (covariates) list: }

   COVARIATE = POP_CHNG N_EMPLD TAX_RATE

               PT_PHONE PT_RURAL AGE;

{ A simple linear model with all terms (main effects) is requested. }

   DESIGN = POP_CHNG + N_EMPLD + TAX_RATE +

            PT_PHONE + PT_RURAL + AGE;

For more examples, see GLM Syntax Examples.