BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
KafeelBasha
Quartz | Level 8

Hello

 

While treating missing values I have came across Regression estimates to treat missing values. 

 

proc reg data=data1 outset=data2;

repmis :model mv=v1 v2 v3 v4/selection=backward;run;

 

proc score data=data1 score=data2 out=sample type=parms predict;

var v1 v2 v3 v4;run;

 

We have replaced missing values by "repmis". 

 

Can you please explain me above codes?. How proc reg helps us in finding the value of "repmis" and the need of proc score?.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

To understand the connection between PROC REG and PROC SCORE, see the article "Techniques for scoring a regression model in SAS."  The label in the PROC REG step is used by PROC SCORE to name the predicted variable.  You can find more examples in the documentation for PROC SCORE.

View solution in original post

3 REPLIES 3
stat_sas
Ammonite | Level 13

Hi,

 

Please provide some sample data. Also, expain your question a bit more.

Reeza
Super User

Repmis is the name of the model. MV is the variable being predicted. 

 

The proc reg creates a model of MV based on the 4 variables included. 

 

Proc score then calculates the predicted values for the variable MV based on the model from proc REG. 

Rick_SAS
SAS Super FREQ

To understand the connection between PROC REG and PROC SCORE, see the article "Techniques for scoring a regression model in SAS."  The label in the PROC REG step is used by PROC SCORE to name the predicted variable.  You can find more examples in the documentation for PROC SCORE.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1734 views
  • 4 likes
  • 4 in conversation