BookmarkSubscribeRSS Feed
xinjian
Calcite | Level 5

 

data want;

input ID group status time;

datalines;

1 1 1 78

2 1 0 80

3 1 0 90

4 1 0 101

5 3 1 52

6 4 0 190

7 2 1 95

8 3 0 100

9 4 1 61

run;

 

Hi Everyone,

Above is my survival data set. and I want to have hazard rate and 95%CI for each level of 'group'.Can I use proc lifetest or proc phreg to have my results?

Thanks so much for your help, 

Xinjian

1 REPLY 1
xinjian
Calcite | Level 5

I have tried below sybtaxes (status: 1=stroke, 0=no stroke)

proc lifetest data = want plot= survival (nocensor failure );

time time*status(0);

strata group ;

run;

proc phreg data=want;

class group (ref='1');

model time*status(0)= group/ rl ;

run;

I just cannot get Hazard rate (I don't get hazard ratio) and 95% CI for four levels of group. The output shoulb like this table below.

group

N

stroke

Hazard rate

95%CI

1

       

2

       

3

       

4

       

 

Is it possible SAS 9.4 can give results like above?

THanks,

XD

 

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1090 views
  • 0 likes
  • 1 in conversation