BookmarkSubscribeRSS Feed
LJB
Calcite | Level 5 LJB
Calcite | Level 5
I am using SAS 9.1 and am testing the proportional hazards assumption required for the Cox model. This test requires the use of the phreg statement:

proc phreg data = alldata;
model time*cens(0)=sex;
sext=sex*time;
proportionality_test: test sext;
run;

However, whenever I run any code with this (and proc lifetime) statement I get an error message: ERROR: Procedure PHREG not found.

Please can someone tell me how I can install this and the other survival packages as they don't seem to be default on SAS?

Thank you,

LJB
1 REPLY 1
Doc_Duke
Rhodochrosite | Level 12
PHREG is part of the SAS/Stat product. It is not installed on your SAS box. Either 1) it is not licensed (in which case you are SOL) or 2) it was not installed. Hope for 2). Call your local IT support. If they can't resolve it, you then go to SAS tech support. SAS tech support may want you to have the ORIGINAL CDs, so you may need to have your IT support people there with you when you call (at least our IT folks won't let mere users have their originals).

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 2206 views
  • 0 likes
  • 2 in conversation