Linear Regression

SAS Code Examples

The BSC developed SAS macros and demonstration code to fit linear and logistic regression models and output results to Excel.

Steps include:

  • Importing and formatting the sample dataset
  • Fitting logistic and linear regression models
  • Calculating summary statistics and parameter estimates
  • Exporting results to external files

See the GitHub repository for the example code, dataset, and output.