BookmarkSubscribeRSS Feed
greveam
Quartz | Level 8

Hi,

 

I want to use the AICC criteria to select the optimal cubic spline for a non-linear association of a continuous variable with survival time outcome in proc phreg.

 

In proc loess I use the following command:

 

proc loess data=dataset plots(only maxpoints=10000)=(fitplot);

model varX=varY /select=AICC alpha=.05 all;

run;

quit;

 

However, this is not available in the effect statement in proc phreg. What I have done so far is running the cox model with 10 to 3 equally spaced knots to see which number of knots provides the lowest AICC.

 

proc phreg data=dataset;

effect varXS = spline(varX / basis=tpf(noint) NATURALCUBIC details knotmethod=equal(10));

model (entry,exit)*outcome(0)= varX / rl=wald ties=EFRON ;

run;

 

I would like to hear if anyone knows how to automate this process and select the knot locations based on the AICC like the proc loess example.

 

Thanks,
Anders

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