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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 1564 views
  • 4 likes
  • 4 in conversation