BookmarkSubscribeRSS Feed
bobeng
Obsidian | Level 7

Hi I was working on my multiple imputation and I see that the trace plots do not display, even though i added this option in my code below:

 

TITLE " MULTIPLE IMPUTATION REGRESSION - FCS";
proc mi data=study_ds_MI seed= 347 nimpute=40 out=fcsoutput;
class pref Race_eth2 /*GestWeeks2*/ agegroup PrePriorARVStatusc2 TrimesterFst2 Mat_payor2 ROS_NYC2 tot_supp2 first_sup STI hep;; *d_year taken out because its continuous;


var Pref Race_eth2 d_year /*GestWeeks2*/ agegroup PrePriorARVStatusc2 ROS_NYC2 tot_supp2 first_sup sup_preg STI hep TrimesterFst2 Mat_payor2 ;


fcs logistic ( Mat_payor2= pref d_year PrePriorARVStatusc2 ROS_NYC2 first_sup sup_preg);*variables MAR with missing Mat_Payor;


fcs logistic (TrimesterFst2= pref d_year PrePriorARVStatusc2 ROS_NYC2 first_sup sup_preg STI);*variables MAR with missing TrimesterFst;


fcs regpmm (d_year) plots=trace; *continuous variables are listed here;


run;*127000;

 

This is my output:

bobeng_0-1705081956849.png

 

2 REPLIES 2
ballardw
Super User

You  do have a trace plot, just not very interesting. That would be related to the content of your data. I suspect that the default Mean for the plot just doesn't vary much across iteration for your data.

 

What does your LOG show for that call to Proc MI? There may be some diagnostic information. You may want to include the code along with all of the messages generated. Copy the text from the log and paste into a text box opened on the forum with the </> that appears above the message window.

bobeng
Obsidian | Level 7

Hi below is the code and the log. I ended up removing this statement because I do not need to impute this variable. There are no missing values for this variable.

 

TITLE " MULTIPLE IMPUTATION REGRESSION - FCS";
proc mi data=study_ds_MI seed= 347 nimpute=40 out=fcsoutput;
class pref Race_eth2 /*GestWeeks2*/ agegroup PrePriorARVStatusc2 TrimesterFst2 Mat_payor2 ROS_NYC2 tot_supp2 first_sup STI hep;; *d_year taken out because its continuous;


var Pref Race_eth2 d_year /*GestWeeks2*/ agegroup PrePriorARVStatusc2 ROS_NYC2 tot_supp2 first_sup sup_preg STI hep TrimesterFst2 Mat_payor2 ;


fcs logistic ( Mat_payor2= pref d_year PrePriorARVStatusc2 ROS_NYC2 first_sup sup_preg);*variables MAR with missing Mat_Payor;


fcs logistic (TrimesterFst2= pref d_year PrePriorARVStatusc2 ROS_NYC2 first_sup sup_preg STI);*variables MAR with missing TrimesterFst;


fcs regpmm (d_year) plots=trace; *continuous variables are listed here;


run;*127000;

 

This is the log:

bobeng_0-1705089447317.png

 

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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