Gronnesby-Borgan Goodness-of-Fit Test for the Cox Model
The Gronnesby-Borgan test checks the overall fit of a Cox model in a way similar to the Hosmer-Lemeshow test for logistic regression. Subjects are grouped by their predicted risk, and in each group the observed number of events is compared with the number the model expects. The statistic combines these differences and follows a chi-square distribution if the model fits.
Gronnesby-Borgan 검정은 로지스틱 회귀의 Hosmer-Lemeshow 검정과 비슷한 방식으로 Cox 모형의 전반적 적합도를 점검합니다. 예측 위험에 따라 대상자를 묶고, 각 묶음에서 관측된 사건 수와 모형이 기대하는 사건 수를 비교합니다. 이 차이를 합친 통계량은 모형이 맞으면 카이제곱 분포를 따릅니다.
Does the Cox model predict the number of events correctly across groups of low to high predicted risk?
Cox 모형은 예측 위험이 낮은 집단부터 높은 집단까지 사건 수를 제대로 예측합니까?
The method returns the chi-square statistic with its degrees of freedom and p-value, and for each risk group the observed and expected events, their difference and a standardized difference.
When to use Gronnesby-Borgan Goodness-of-Fit Test for the Cox Model
- You want an overall goodness-of-fit check of a Cox model.
- You want to see whether the model under- or over-predicts in particular risk groups.
- There are enough events for several risk groups.
When to use something else
- You test proportional hazards for each covariate: use Cox Model Residual Diagnostics (Cox-Snell, Martingale, Deviance, Score)
- You assess discrimination: use Survival Model Performance (Concordance and Brier Score)
Assumptions and requirements
- At least about 5 expected events per group
- Independent censoring
What the analysis reports
- Chi-square statistic, df and p-value
- Observed and expected events per risk group
How to report it
The Gronnesby-Borgan test with [value] risk groups gave chi2([value]) = [value], p = [value].
Related methods
- Cox Proportional Hazards Model
- Cox Model Residual Diagnostics (Cox-Snell, Martingale, Deviance, Score)
- Survival Model Performance (Concordance and Brier Score)
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with statsmodels at a stated tolerance of 1e-6.
독립 계산. statsmodels 대조 참조 시험 1건 통과(허용오차 1e-6).
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 Gronnesby-Borgan Goodness-of-Fit Test for the Cox Model on Quorant
- Data you need
- a table (CSV or Excel) with a time variable, an event indicator and predictor (feature) columns
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 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.