In statistics, the logrank test is a hypothesis test to compare the survival distributions of two samples. It is a nonparametric test and appropriate to use when the data are right skewed and censored (technically, the censoring must be non-informative). It is widely used in clinical trials to establish the efficacy of a new treatment compared to a control treatment when the measurement is the time to event (such as the time from initial treatment to a heart attack). The test is sometimes called the Mantel–Cox test, named after Nathan Mantel and David Cox. The logrank test can also be viewed as a time stratified Cochran–Mantel–Haenszel test.
The test was first proposed by Nathan Mantel and was named the logrank test by Richard and Julian Peto.[1][2][3]
Contents
- 1 Definition
- 2 Asymptotic distribution
- 3 Joint distribution
- 4 Relationship to other statistics
- 5 See also
- 6 References
- 7 External links
|
Definition [edit]
The logrank test statistic compares estimates of the hazard functions of the two groups at each observed event time. It is constructed by computing the observed and expected number of events in one of the groups at each observed event time and then adding these to obtain an overall summary across all time points where there is an event.
Let j = 1, ..., J be the distinct times of observed events in either group. For each time , let and be the number of subjects "at risk" (have not yet had an event or been censored) at the start of period in the two groups (often treatment vs control) respectively. Let . Let and be the observed number of events in the groups respectively at time , and define .
Given that events happened across both groups at time , under the null hypothesis (of the two groups having identical survival and hazard functions) has the hypergeometric distribution with parameters , , and . This distribution has expected value and variance .
The logrank statistic compares each to its expectation under the null hypothesis and is defined as
Asymptotic distribution [edit]
If the two groups have the same survival function, the logrank statistic is approximately standard normal. A one-sided level test will reject the null hypothesis if where is the upper quantile of the standard normal distribution. If the hazard ratio is , there are total subjects, is the probability a subject in either group will eventually have an event (so that is the expected number of events at the time of the analysis), and the proportion of subjects randomized to each group is 50%, then the logrank statistic is approximately normal with mean and variance 1.[4] For a one-sided level test with power , the sample size required is where and are the quantiles of the standard normal distribution.
Joint distribution [edit]
Suppose and are the logrank statistics at two different time points in the same study ( earlier). Again, assume the hazard functions in the two groups are proportional with hazard ratio and and are the probabilities that a subject will have an event at the two time points where . and are approximately bivariate normal with means and and correlation . Calculations involving the joint distribution are needed to correctly maintain the error rate when the data are examined multiple times within a study by a Data Monitoring Committee.
Relationship to other statistics [edit]
- The logrank test has been shown to be too permissive a test, allowing significant results for survivorship prediction models that have low accuracy. The F* test was developed in response to these observations and has been shown to be more critical and to track accuracy of the prediction models with higher fidelity.[5]
- The logrank statistic can be derived as the score test for the Cox proportional hazards model comparing two groups. It is therefore asymptotically equivalent to the likelihood ratio test statistic based from that model.
- The logrank statistic is asymptotically equivalent to the likelihood ratio test statistic for any family of distributions with proportional hazard alternative. For example, if the data from the two samples have exponential distributions.
- If is the logrank statistic, is the number of events observed, and is the estimate of the hazard ratio, then . This relationship is useful when two of the quantities are known (e.g. from a published article), but the third one is needed.
- The logrank statistic can be used when observations are censored. If censored observations are not present in the data then the Wilcoxon rank sum test is appropriate.
- The logrank statistic gives all calculations the same weight, regardless of the time at which an event occurs. The Peto logrank statistic gives more weight to earlier events when there are a large number of observations.
See also [edit]
- Kaplan-Meier estimator
- Hazard ratio
References [edit]
- ^ Mantel, Nathan (1966). "Evaluation of survival data and two new rank order statistics arising in its consideration.". Cancer Chemotherapy Reports 50 (3): 163–70. PMID 5910392.
- ^ Peto, Richard; Peto, Julian (1972). "Asymptotically Efficient Rank Invariant Test Procedures". Journal of the Royal Statistical Society, Series A (Blackwell Publishing) 135 (2): 185–207. doi:10.2307/2344317. JSTOR 2344317.
- ^ Harrington, David (2005). "Linear Rank Tests in Survival Analysis". Encyclopedia of Biostatistics. Wiley Interscience. doi:10.1002/0470011815.b2a11047.
- ^ Schoenfeld, D (1981). "The asymptotic properties of nonparametric tests for comparing survival distributions". Biometrika 68: 316–319. JSTOR 2335833.
- ^ Berty HP, Shi H, Lyons-Weiler J. Determining the statistical significance of survivorship prediction models. 2010. J Eval Clin Pract.16(1):155-65. [1]
External links [edit]
- Bland, J. M.; Altman, D. G. (2004). "The logrank test". BMJ 328 (7447): 1073. doi:10.1136/bmj.328.7447.1073. PMC 403858. PMID 15117797. edit
Statistics
|
|
Descriptive statistics
|
|
Continuous data |
Location |
- Mean (Arithmetic, Geometric, Harmonic)
- Median
- Mode
|
|
Dispersion |
- Range
- Standard deviation
- Coefficient of variation
- Percentile
- Interquartile range
|
|
Shape |
- Variance
- Skewness
- Kurtosis
- Moments
- L-moments
|
|
|
Count data |
|
|
Summary tables |
- Grouped data
- Frequency distribution
- Contingency table
|
|
Dependence |
- Pearson product-moment correlation
- Rank correlation (Spearman's rho, Kendall's tau)
- Partial correlation
- Scatter plot
|
|
Statistical graphics |
- Bar chart
- Biplot
- Box plot
- Control chart
- Correlogram
- Forest plot
- Histogram
- Q–Q plot
- Run chart
- Scatter plot
- Stemplot
- Radar chart
|
|
|
|
Data collection
|
|
Designing studies |
- Effect size
- Standard error
- Statistical power
- Sample size determination
|
|
Survey methodology |
- Sampling
- Stratified sampling
- Opinion poll
- Questionnaire
|
|
Controlled experiment |
- Design of experiments
- Randomized experiment
- Random assignment
- Replication
- Blocking
- Factorial experiment
- Optimal design
|
|
Uncontrolled studies |
- Natural experiment
- Quasi-experiment
- Observational study
|
|
|
|
Statistical inference
|
|
Statistical theory |
- Sampling distribution
- Order statistics
- Sufficiency
- Completeness
- Exponential family
- Permutation test (Randomization test)
- Empirical distribution
- Bootstrap
- U statistic
- Efficiency
- Asymptotics
- Robustness
|
|
Frequentist inference |
- Unbiased estimator (Mean unbiased minimum variance, Median unbiased)
- Biased estimators (Maximum likelihood, Method of moments, Minimum distance, Density estimation)
- Confidence interval
- Testing hypotheses
- Power
- Parametric tests (Likelihood-ratio, Wald, Score)
|
|
Specific tests |
- Z (normal)
- Student's t-test
- F
- Chi-squared
- Signed-rank (1-sample, 2-sample, 1-way anova)
- Shapiro–Wilk
- Kolmogorov–Smirnov
|
|
Bayesian inference |
- Bayesian probability
- Prior
- Posterior
- Credible interval
- Bayes factor
- Bayesian estimator
- Maximum posterior estimator
|
|
|
|
Correlation and regression analysis
|
|
Correlation |
- Pearson product–moment correlation
- Partial correlation
- Confounding variable
- Coefficient of determination
|
|
Regression analysis |
- Errors and residuals
- Regression model validation
- Mixed effects models
- Simultaneous equations models
|
|
Linear regression |
- Simple linear regression
- Ordinary least squares
- General linear model
- Bayesian regression
|
|
Non-standard predictors |
- Nonlinear regression
- Nonparametric
- Semiparametric
- Isotonic
- Robust
|
|
Generalized linear model |
- Exponential families
- Logistic (Bernoulli)
- Binomial
- Poisson
|
|
Partition of variance |
- Analysis of variance (ANOVA)
- Analysis of covariance
- Multivariate ANOVA
- Degrees of freedom
|
|
|
|
Categorical, multivariate, time-series, or survival analysis
|
|
Categorical data |
- Cohen's kappa
- Contingency table
- Graphical model
- Log-linear model
- McNemar's test
|
|
Multivariate statistics |
- Multivariate regression
- Principal components
- Factor analysis
- Cluster analysis
- Classification
- Copulas
|
|
Time series analysis |
General |
- Decomposition
- Trend
- Stationarity
- Seasonal adjustment
|
|
Time domain |
- ACF
- PACF
- XCF
- ARMA model
- ARIMA model
- Vector autoregression
|
|
Frequency domain |
- Spectral density estimation
|
|
|
Survival analysis |
- Survival function
- Kaplan–Meier
- Logrank test
- Failure rate
- Proportional hazards models
- Accelerated failure time model
|
|
|
|
Applications
|
|
Biostatistics |
- Bioinformatics
- Clinical trials & studies
- Epidemiology
- Medical statistics
|
|
Engineering statistics |
- Chemometrics
- Methods engineering
- Probabilistic design
- Process & Quality control
- Reliability
- System identification
|
|
Social statistics |
- Actuarial science
- Census
- Crime statistics
- Demography
- Econometrics
- National accounts
- Official statistics
- Population
- Psychometrics
|
|
Spatial statistics |
- Cartography
- Environmental statistics
- Geographic information system
- Geostatistics
- Kriging
|
|
|
|
- Category
- Portal
- Outline
- Index
|
|