Hi!
I am working with a dataset with missing values for few observations.
I would like to do multiple imputation for them.
The variables are below:
BMI_1_year Frequency Missing = 199
BMI_6_mon Frequency Missing = 122
Post_op_BMI_4_weeks Frequency Missing = 127
Pre_op_BMI Frequency Missing = 177
Please let me know sas code to do it.
I have attached a part of my dataset.
Thanks,
I am not able to attach my dataset. sorry. It says "The contents of the attachment doesn't match its file type."
You will need to decide which methodology you want to use specifically. This link in the MI documentation will help you to decide:
Once you decide between MCMC vs FS/Monotone then there are good examples of the coding in the documentation as well.
I used the following code:
proc mi data=red.sleeve1 nimpute=0 ;
mcmc chain=multiple displayinit initial=em(itprint);
var BMI_1_year BMI_6_mon Post_op_BMI_4_weeks Pre_op_BMI ;
run;
The sas output i got is attached. How do i interpret this. Thanks.
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
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.