BookmarkSubscribeRSS Feed
sas_user4
Obsidian | Level 7

Hello,

I am running Cox regression and wanted to test effect modification across race (4 strata). This is the code I am using:

 

proc phreg data = ABC;
model asthmatt*asthma(0) = p_cvscore  tp_cvscore/risklimit;
tp_cvscore=p_cvscore*log(asthmatt);
test_proportionality: test p_cvscore, tp_cvscore;
run;
 
Is testing for effect modification the same for proportionality assumption? I need explanation and if my code correct or wrong, please. Assuming the test is approriate in this case, what other options to use if the test of proportionality was sig? I mean what to do, what statistical solutions should I proceed with?
Thanks,
 
1 REPLY 1
sas_user4
Obsidian | Level 7

To add, I got this error message (log says  P_CVSCORE in TEST statement test_proportionality is not a parameter in the model) when I used this code:

 

proc phreg data = ABC;
class p_cvscore race1c education salary ;
model asthmatt*asthma(0) = p_cvscore  tp_cvscore /risklimit;
tp_cvscore=p_cvscore*log(asthmatt);
test_proportionality: test p_cvscore, tp_cvscore;
run;

 

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 1 reply
  • 1465 views
  • 0 likes
  • 1 in conversation