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

Hi SAS experts,

 

I have a question on multiple imputation.  Variables with missing data are: stage_cancer(ordinal) and birthcountry (nominal).

 

After I impute this data with the following code - what's next?  

 

proc mi data = data nimpute=5 seed=9455 out=outmi;
class stage_cancer birthcountry;
fcs discrim(stage_cancer = sexn age birthcountry/classeffects=include);
fcs discrim(birthcountry = sexn age stage_cancer/classeffects=include);
var sexn age stage_cancer birthcountry;
run;

 

I am not sure how to handle the 5 new imputed datasets for the same subject, if lets say I want to run a regression - do i use the outmi dataset?

proc reg data = data;

model outcome = sexn age stage_cancer birthcountry;

run;

 

Any advice would be much appreciated! Thanks a lot.

1 ACCEPTED SOLUTION

Accepted Solutions
PGStats
Opal | Level 21

Look at proc MIANALYZE, something like

 

proc reg data=outmi outest=estmi;
by _imputation_;
model outcome = sexn age stage_cancer birthcountry;
run;

 

proc mianalyze data=estmi;
modeleffects ...;
run;

PG

View solution in original post

3 REPLIES 3
PGStats
Opal | Level 21

Look at proc MIANALYZE, something like

 

proc reg data=outmi outest=estmi;
by _imputation_;
model outcome = sexn age stage_cancer birthcountry;
run;

 

proc mianalyze data=estmi;
modeleffects ...;
run;

PG
kewong
Obsidian | Level 7

Thanks PG Stats!

 

I guess what I am struggle is this: "The key idea is that M repetitions yield M completed data sets, each of which can be analyzed by standard complete-data methods just as if it were the real data set. The M complete-data analyses based on the M repeated imputations are then combined to create one repeated-imputation inference."

 

So in this case, do I run proc reg 5 times for each imputed dataset?

 

and proc mianalyze creates combines to create one inference?

 

Thanks in advance for the clarification

PGStats
Opal | Level 21

You run proc reg once with by _imputation_. This performs 5 regressions and puts all the results in the same file (estmi) which is then fed to proc mianalyze.

PG

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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