Scoring a linear regression model with SAS

This article explains how to score a new data in a linear regression model with SAS.

Build a linear regression model
proc reg data = crime noprint outest=estimates;
model crime = pctmetro poverty single;
run;
quit;
Note : The  OUTEST=  option returns a data set in which estimates are stored.

Score a linear regression model
proc score data = crime_new score=estimates
out=scored type=parms;
var pctmetro poverty single;
run;

  1. The TYPE= option tells PROC SCORE what type of data the SCORE= data set contains. In this case, specifying TYPE=PARMS tells SAS to use the parameter estimates in the Estimates data set. 
  2. The VAR statement specifies the variables to be used in computing scores. Specify independent variables to be used in computing predicted values.
Related Posts : 
  1. Checking Assumptions of Multiple Linear Regression with SAS
  2. Homoscedasticity Simplified with SAS
  3. Linear Regression Model with PROC GLMSELECT
Love this Post? Spread the Word!
Comment and share to motivate us to write more!
About Author:

Deepanshu founded ListenData with a simple objective - Make analytics easy to understand and follow. He has over 8 years of experience in data science. During his tenure, he has worked with global clients in various domains like Banking, Insurance, Telecom and Human Resource.

Get Free Email Updates :
*Please confirm your email address by clicking on the link sent to your Email*
Related Posts:
2 Responses to "Scoring a linear regression model with SAS"
  1. Thanks for the explanation....simple and informative.
    was trying to understand this concept from longtime finally I got an idea how this step works.

    ReplyDelete
  2. how can i find crime data set as csv or txt file...?

    ReplyDelete

We have Zero Tolerance to Spam. Comments with links will be deleted immediately upon our review.

Next → ← Prev
Scroll to Top