BookmarkSubscribeRSS Feed
SAS-questioner
Obsidian | Level 7

I am trying to conduct a cox proportional hazard, after I checked the assumptions, it turns out that interaction exists. So, I have to put an interaction into the model. But the time varying covariate is polytomous variable with four categories. I used the below code to run analysis:

proc phreg data=one;
	class treatment(ref='1');
	model time*survival(0) = treatment treat_ti;
	treat_ti=treatment*time;
run;

The treatment is time varying covariate with four categories. And I get the results like this:

                                       Parameter      Standard                  Hazard
 Parameter      DF      Estimate         Error    Chi-Square    Pr > ChiSq       Ratio    

 treatment 2     1      -0.33139       0.02126     1183.5006        <.0001   0.386    
 treatment 3     1      -0.17445       0.02588       45.4387        <.0001   0.745    
 treatment 4     1      -0.69876       0.03591      278.0054        <.0001   0.646    
 treat_ti        1      0.01096     0.0001625      145.9549         <.0001   1.023

I am not sure if I put the interaction term wrong because the treatment is 4-category variable, but there is only one interaction term which makes the interpretation really hard. When I saw the K-M plot, only two treatments had the interaction. So my question is, did I do it correctly? If I did it correctly, how to interpret these results? Could anyone help me with it? Thank you!

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 0 replies
  • 299 views
  • 0 likes
  • 1 in conversation