Cumulative Residual Model Checking for Generalized Linear Models (Lin-Wei-Ying)
This check sums the raw residuals of a fitted generalized linear model in the order of each continuous covariate and of the linear predictor. Under a correct model these cumulative sums fluctuate around zero like a known Gaussian process, which is simulated with random multipliers to give supremum-test p-values.
적합한 일반화선형모형의 원잔차를 각 연속형 공변량과 선형예측식의 순서대로 누적해 합합니다. 모형이 맞다면 이 누적합은 알려진 가우스 과정처럼 0 주위를 흔들리므로, 무작위 승수로 그 과정을 모의해 최댓값 검정의 p값을 구합니다.
Is the functional form of each covariate, and the link function, of my fitted GLM adequate?
적합한 일반화선형모형에서 각 공변량의 함수 형태와 연결함수가 적절합니까?
The method reports, for every continuous covariate and for the linear predictor, the largest absolute cumulative residual and a simulated p-value; small p-values point to a wrong functional form (covariate processes) or a wrong link (linear-predictor process). The observed process is plotted.
When to use Cumulative Residual Model Checking for Generalized Linear Models (Lin-Wei-Ying)
- You want a formal test of the functional form of a covariate in a GLM.
- You want to check the link function without choosing an alternative model.
- You need a diagnostic that is valid for binary as well as count or continuous outcomes.
When to use something else
- You want residual plots for individual observations: use GLM Residual Diagnostics (Deviance, Pearson, Randomized Quantile Residuals)
- You only want a quick test of the link: use Pregibon Link Test
Assumptions and requirements
- Independent observations
- Correct variance function
- Enough observations for the multiplier approximation
What the analysis reports
- Supremum statistics per process
- Simulated p-values
- Plot of the observed cumulative residual process
How to report it
Cumulative-residual checks (Lin, Wei & Ying, 2002) with [value] multiplier draws gave sup|W| = [value], p = [value] for age, suggesting a misspecified functional form.
Related methods
- GLM Residual Diagnostics (Deviance, Pearson, Randomized Quantile Residuals)
- Pregibon Link Test
- Binary Logistic Regression
How this method is validated
이 방법의 검증 근거
- Independent computation. 2 reference tests compare the results with direct computations (formulas, enumeration or simulation).
독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 2건 통과.
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 Cumulative Residual Model Checking for Generalized Linear Models (Lin-Wei-Ying) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable 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.