Programming the statistical procedures from SAS

PROC PHREG (Fine and Gray model)

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 8
Accepted Solution

PROC PHREG (Fine and Gray model)

Dear all,

 

I used proc phreg to run fine and gray model. My dataset has no missing value, and when the univeriate analysis was taken, everything is OK (the number of used observations = the number of read observations). But when the multivariate model was analized, things would be like this, the log as below:


ods graphics on;
proc phreg data=model_os_m plots(overlay=stratum)=cif;
class A (ref='Normal');
class B(order=internal ref=first) C(order=internal ref=first);
model dftime*status(0)=A B C D / eventcode=1;
Hazardratio 'Pairwise' A / diff=pairwise;
baseline covariates=cov_os2_m out=outos2m cif=_all_;
run;


NOTE: 331 observations were deleted due either to missing or invalid values for the time,
censoring, frequency or explanatory variables or to invalid operations in generating the
values for some of the explanatory variables.
NOTE: Convergence criterion (GCONV=1E-8) satisfied.

 

I have tried proc print/frequency in the Fine and gray model, but the log states that NOTE: The RESMART= option (OUTPUT statement) is ignored for the Fine and Gray competing-risks analysis.

 

So, why 331 observations have been deleted in the multivariate analysis? And how can I identify which observations have not been used in the final model? Could you please tell me how can I solve this problem in fine and gray model test?

 

Thank you very much!

 

Alddle


Accepted Solutions
Solution
‎11-23-2016 08:16 AM
Occasional Contributor
Posts: 8

Re: PROC PHREG (Fine and Gray model)

Thanks. Some observations have been deleted due to a irrelevant variable with missing data uncorrectly involved in the "class" statement. 

View solution in original post


All Replies
Super User
Posts: 18,586

Re: PROC PHREG (Fine and Gray model)

It does say invalid values. Do all your times make sense? 

Occasional Contributor
Posts: 8

Re: PROC PHREG (Fine and Gray model)

Dear Reeza,

 

Thanks. Do you mean tied event times? Or you mean the robust covariance matrix? But, why univeriate analysis of each factor for fine and fray model is OK? Could you please tell me how can I find these invalid times? 

 

Best,

 

Alddle

Occasional Contributor
Posts: 8

Re: PROC PHREG (Fine and Gray model)

[ Edited ]

I have checked the dftimes, and found that only 61 pairs of observation have tied event times.

Solution
‎11-23-2016 08:16 AM
Occasional Contributor
Posts: 8

Re: PROC PHREG (Fine and Gray model)

Thanks. Some observations have been deleted due to a irrelevant variable with missing data uncorrectly involved in the "class" statement. 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 363 views
  • 0 likes
  • 2 in conversation