BookmarkSubscribeRSS Feed
sasworker16
Calcite | Level 5

Hi all,

 

I have a dataset that includes about 10 variables and follow-up for death (n= ~2,000).

 

I want to evaluation the Cox PH model derived from the train set (70%) in the test set (30%).

 

For this, I have done this so far to try with age (cont.) sex (categorical) 

 

 

proc phreg=train;
model duration*death(0)=age sex;
run;
/*regression coefficient age: 0.07 sex: 0.3 */

 

How would I use the coefficient derived from the test set and evaluate the performance of the model in the test set? 

 

In theory, I think the regression coefficient values are found by maximizing the partial likelihood, 

so simply, 

 

hi(t)/h0(t)=exp(0.07*age+0.3*sex)

 

I want to evaluate this model with Harrell's C-index

 

 

proc phreg=test concordance;
/*<----what should be here with regression coefficients from the train set?*/
run;

 

2 REPLIES 2
sasworker16
Calcite | Level 5

Hi all,

 

I have a dataset that includes about 10 variables and follow-up for death (n= ~2,000).

 

I want to evaluation the Cox PH model derived from the train set (70%) in the test set (30%).

 

For this, I have done this so far to try with age (cont.) sex (categorical) 

 

proc phreg=test;
model duration*death(0)=age sex;
run;
/*regression coefficient age: 0.07 sex: 0.3 */

How would I use the coefficient derived from the test set and evaluate the performance of the model in the test set? 

 

In theory, I think the regression coefficient values are found by maximizing the partial likelihood, 

so simply, 

 

hi(t)/h0(t)=exp(0.07*age+0.3*sex)

 

I want to evaluate this model with Harrell's C-index

 

proc phreg=test concordance;
/*<----what should be here with regression coefficients from the train set?*/
run;

any help would be appreciated.

 

 

sasworker16
Calcite | Level 5
/*Typo: train, NOT test*/

proc phreg=train;
model duration*death(0)=age sex;
run;
/*regression coefficient age: 0.07 sex: 0.3 *

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