This article explains how to score a new data in a linear regression model with SAS.
proc reg data = crime noprint outest=estimates;Note : The OUTEST= option returns a data set in which estimates are stored.
model crime = pctmetro poverty single;
run;
quit;
Score a linear regression model
proc score data = crime_new score=estimates
out=scored type=parms;
var pctmetro poverty single;
run;
- 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.
- The VAR statement specifies the variables to be used in computing scores. Specify independent variables to be used in computing predicted values.
Thanks for the explanation....simple and informative.
ReplyDeletewas trying to understand this concept from longtime finally I got an idea how this step works.
how can i find crime data set as csv or txt file...?
ReplyDelete