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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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