BookmarkSubscribeRSS Feed
SAS_help_needed
Calcite | Level 5

Hello!

 

I am running PHREG with repeated covariate measures and I cannot understand how SAS deals with missing data. I specifically created a data set with full repeated covariate data (i.e. there are no missing values in any of the variables). Nevertheless, I still get notes in the LOG such as "5 event observations have missing values in the time-dependent covariates. They are not counted as event observations, but they may still be used in the risk sets of other event times." Of course the outcome and follow-up time are also complete. Does anyone knows why this may be happening? The code I use is:

 

proc phreg data=check;

   where cohort>1 and Years~=.;

   class sex(ref="1") cohort(ref="2");

   model Years*Outcome(0)=cohort sex bodymassindex / ties=breslow risklimits selection=backward slstay=0.08 include=1;

   array adur{*} dur1-dur6 dur8 dur10 dur14;

   array abmi{*} mbmi1-mbmi6 mbmi8 mbmi10 mbmi14;

 

   do i=1 to 9;

      if (Years ge adur{i}) and (adur{i}~=.) then do;

          bodymassindex=abmi{i};

      end;

   end;

run;

 

Thank you!
Tina.

 

P.S. The reason I am concerned about this is that when I use the same exact data set with PROC LIFETEST, I get very different results. When covariates outside the fixed cohort and sex are not included in PHREG the effect of cohort is not significant, just like in LIFETEST. However, when bmi is included as a covariate with repeated measures, the effect of cohort becomes very significant, though bmi increases over time across all cohorts (though it is lower at study entry in one compared to the other two cohorts, bmi becomes similar across cohorts by year 3). I was thus wondering whether the 5 events not counted as such may be the answer, although I am not sure which 5 are excluded as cases - all have data on bmi throughout follow-up.

1 REPLY 1
BeverlyBrown
Community Manager

Hi @SAS_help_needed, I did some internal checking here at SAS. Since solving this issue will require some diagnostic effort, the fastest route to an answer would be for you to contact Technical Support. Any of the methods at this link will work: https://support.sas.com/techsup/contact/ If the resolution is something you can share, post back here so users with future similar questions will benefit. All the best to you...

Couldn't attend SAS Innovate in person? We gotchu. Access on-demand content now!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 620 views
  • 0 likes
  • 2 in conversation