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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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