Cox Model Cumulative Martingale Residual Checks (Lin-Wei-Ying)
Lin, Wei and Ying's checks cumulate martingale-based residuals of a fitted Cox model, either over the values of a covariate to examine its functional form or over time to examine proportional hazards through the score process. Under a correct model these processes behave like zero-mean Gaussian processes whose paths can be simulated with normal multipliers, and a supremum test compares the observed process with the simulated ones.
린-웨이-잉 점검은 적합한 콕스 모형의 마팅게일 잔차를 공변량 값의 순서로 누적해 함수 형태를, 시간 순서로 누적한 점수 과정으로 비례위험을 살핍니다. 모형이 맞으면 이 과정들은 평균 0인 가우스 과정처럼 움직이며 정규 승수로 그 경로를 모의할 수 있고, 상한 검정으로 관측 과정을 모의 과정과 비교합니다.
Is it reasonable to enter age linearly in my Cox model for mortality, and does the treatment effect satisfy proportional hazards?
사망률 콕스 모형에 나이를 선형으로 넣어도 되는지, 그리고 처치 효과가 비례위험 가정을 만족하는지 어떻게 확인합니까?
The method returns, for each covariate, the coefficient and hazard ratio, the supremum of the cumulative residual process over covariate values with its simulated p-value for functional form and the supremum of the score process over time with its p-value for proportional hazards.
When to use Cox Model Cumulative Martingale Residual Checks (Lin-Wei-Ying)
- A fitted Cox model needs formal checks of functional form and proportional hazards.
- Graphical residual checks are hard to judge by eye.
- A test with a valid null distribution for each covariate is wanted.
When to use something else
- Only residual values per subject are needed: use Cox Model Residual Diagnostics (Cox-Snell, Martingale, Deviance, Score)
- An overall goodness-of-fit test by risk groups is wanted: use Gronnesby-Borgan Goodness-of-Fit Test for the Cox Model
Assumptions and requirements
- Independent censoring
- Numeric covariates (functional form is skipped for binary ones)
- Breslow handling of tied event times
What the analysis reports
- Coefficients and hazard ratios
- Supremum statistics and simulated p-values for functional form and proportional hazards
- Observed score process for plotting
How to report it
Cumulative martingale residual checks gave p = [value] for the functional form of [covariate] and p = [value] for proportional hazards.
Related methods
- Cox Proportional Hazards Model
- Cox Model Residual Diagnostics (Cox-Snell, Martingale, Deviance, Score)
- Gronnesby-Borgan Goodness-of-Fit Test for the Cox Model
- Time Dependent Cox Hazards Model
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with lifelines, statsmodels and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-5.
독립 계산. lifelines·statsmodels·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-5).
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Cox Model Cumulative Martingale Residual Checks (Lin-Wei-Ying) on Quorant
- Data you need
- a table (CSV or Excel) with a time variable, an event indicator and predictor (feature) columns
- Price
- 600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.