Programming the statistical procedures from SAS

Missing value treatment with Regression estimates

Accepted Solution Solved
Reply
Contributor
Posts: 67
Accepted Solution

Missing value treatment with Regression estimates

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


Accepted Solutions
Solution
‎07-20-2016 04:38 AM
SAS Super FREQ
Posts: 3,319

Re: Missing value treatment with Regression estimates

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


All Replies
Trusted Advisor
Posts: 1,195

Re: Missing value treatment with Regression estimates

Hi,

 

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

Grand Advisor
Posts: 16,940

Re: Missing value treatment with Regression estimates

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. 

Solution
‎07-20-2016 04:38 AM
SAS Super FREQ
Posts: 3,319

Re: Missing value treatment with Regression estimates

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.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

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