BookmarkSubscribeRSS Feed
murphy82nd
Calcite | Level 5
Hey all,
I am very new to SAS, long time JMP and R user, but I need to use it to perform a trend test for a class I am taking. I am using the following code to test for the trend:

proc lifetest data=rats;
time Time*Censor(0);
strata Untreated Radiated RadiatedBPA /Trend test=(all);
run;

The test runs properly, but the results don't seem correct. The log-rank test statistic my test returns is 16.0869. This compares to my book which says the value should be "log-rank trend test chi-squared =30.051". Is the test statistic that SAS returns not a chi-squared statistic? Otherwise I am not sure what I am doing wrong. I know my data set values are correct as are the variables. Any help would be great.
1 REPLY 1
Reeza
Super User

I think we need more info...if the data is online from your text, pointing to the link would be helpful and someone can duplicate your results.

I noticed 2 variables named radiated...how many levels does each have.

Are all Strata being tested at the same time in your text as well?

Can always check the technotes for an errors in proc lifetest and/or your text for erratas...

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 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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1180 views
  • 0 likes
  • 2 in conversation