Hypotheses:
In calculations was used chi-square statistics form:
where:
- covariance matrix of dimensions
where:
diagonal: ,
off diagonal:
– number of moments in time with failure event (death),
– observed number of failure events (deaths) in the -th moment of time,
– observed number of failure events (deaths) in the w -th group w in the -th moment of time,
– expected number of failure events (deaths) in the w -th group w in the -th moment of time,
– the number of cases at risk in the -th moment of time.
The statistic asymptotically (for large sizes) has the Chi-square distribution with degrees of freedom.
The p-value, designated on the basis of the test statistic, is compared with the significance level :
Hazard ratio
In the log-rank test the observed values of failure events (deaths) and the appropriate expected values are given.
The measure for describing the size of the difference between a pair of survival curves is the hazard ratio ().
If the hazard ratio is greater than 1, e.g. , then the degree of the risk of a failure event in the first group is twice as big as in the second group. The reverse situation takes place when is smaller than one. When is equal to 1 both groups are equally at risk.
Note
The confidence interval for is calculated on the basis of the standard deviation of the logarithm (Armitage and Berry 19941)).
EXAMPLE cont. (transplant.pqs file)