Frequently Asked Questions

The logrank test for trend in survival analysis

FAQ# 1654    Last Modified 17-September-2010

 If you compare three or more survival curves with Prism, it will show results for the overall logrank test, and also show results for the logrank test for trend.

When should you look at the results for the test for trend?

The test for trend is only relevant when the order of groups (defined by data set columns in Prism) is logical. Examples would be if the groups are different age groups, different disease severities, or different doses of a drug. The left-to-right order of data sets in Prism must correspond to equally spaced ordered categories.

 If the data sets are not ordered (or not equally spaced), then you should ignore the results of the logrank test for trend.

Results of the logrank test for trend

The logrank test for trend reports a chi-square value, which is always associated with one degree of freedom (no matter how many data sets are being compared). It uses that chi-square value to compute a P value testing the null hypothesis that there is no linear trend between column order and median survival. If the P value is low, you can conclude that there is a significant trend.

Prism assumes the groups are equally spaced  

Computing the logrank test for trend requires assigning each group a code number. The test then looks at the trend between these group codes and survival. With some programs, you could assign these codes, and thus deal with ordered groups that are not equally spaced. Prism uses the column number as the code, so it can only perform the test for trend assuming equally spaced ordered groups.

How it works

The test looks at the linear trend between group code (column number in Prism) and survival. But it doesn't look at median survival, or five-year survival, or any other summary measure. It first computes expected survival assuming the null hypothesis that all the groups are sampled from population with the same survival experience. Then it quantifies the overall discrepancy between the observed survival and the expected survival for each group. Finally it looks at the trend between that discrepancy and group code. 


The calculation details are explained in each of these books:


Need to learn
Prism 7?

These guided examples of common analyses will get you off to a great start! CLICK HERE >