Programming the statistical procedures from SAS

LifeTest Proc Question

Reply
N/A
Posts: 0

LifeTest Proc Question

I hpe this isn't too simple of a question, but I am new to SAS (from SPSS) and finally got the Lifetest to run as I need it to, with a few questions. I hope someone can help me with this. The code I am using is as follows:

ods pdf file='g:\harris jc\pic meeting\TRM100dALLO.pdf';
ods graphics on;
proc lifetest timelist=100 365 730 plots=(survival);
time DysLC*TRM(0);
strata BMTTYPE;
title 'Transplant Related Mortality at 100d by BMT Type 2005-2009';
run;
ods graphics off;

This is working fine to give me the basic numbers I need. I need a few more things and not sure how to incorporate them into the code. What I am looking for is this:

1. I need to truncate the graph at 100 Days
2. I need Confidence Intervals to compute (but not graph)
3. In SPSS to get the grap to run up and not down I would choose the 1-KM option. How do I do this in SAS?

Any help is MUCH appreciated. Thanks in Advance.
N/A
Posts: 0

Re: LifeTest Proc Question

OK. I have it down to this:

ods graphics on;
proc lifetest timelist=100 365 730 1095
alpha=.95
plots=(ls)
maxtime=100
intervals=1 to 100 by 25;
time DysLC*TRM(0);
strata BMTTYPE;
title 'Transplant Related Mortality at 100d by BMT Type 2005-2009';
run;
ods graphics off;


The LS throws the plot in the direction I need and seems to equal the right numbers from the table. Is this correct? Anyone have an idea?
Ask a Question
Discussion stats
  • 1 reply
  • 72 views
  • 0 likes
  • 1 in conversation