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
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.
Hi,
Please provide some sample data. Also, expain your question a bit more.
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.
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 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.