BookmarkSubscribeRSS Feed
chintanpatel
Calcite | Level 5

Hello,

 I am performing multiple imputation in three step. Proc MI to impute. Proc Reg to perform regression analysis on all imputed data sets. Proc MI ANALYZE to draw inferences. My code is as written below.

 

Proc MI DATA= galtonmiss&var. NIMPUTE=2 out= mi_mvn&var. noprint;
var HW WW FAMINC;
run;

TITLE " MULTIPLE IMPUTATION REGRESSION - MVN";
proc glm data = mi_mvn&var.;
model FAMINC = HW WW;
by _imputation_;
ods output ParameterEstimates = a_mvn&var.;
run;


proc mianalyze parms=a_mvn&var.;
modeleffects intercept HW WW;
ods output ParameterEstimates = abc&var.;
run;


proc score data = work.importv score = abc&var. type = intercepts predict out = preds&var.;
var HW WW;
quit;

 

When i run this code it says variable HW and WW not found. And I think it's because of output from MIANALYZE. I checked its parameter estimates and i complered with normal regression analysis parameter estimates. Both tables are in different format. Can anyone help me ?

 

2 REPLIES 2
Reeza
Super User

It's not clear what your question is here. 

chintanpatel
Calcite | Level 5

I have parameter estimates as output from PROC MI ANALYZE. I am using Proc Score to use this parameter estimates and validate. It is not working. In Proc score I am getting error variable HW and WW are missing.

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 895 views
  • 0 likes
  • 2 in conversation