Generalized (Robust) Score Test
The method tests whether some coefficients of a generalized linear model (linear, logistic or Poisson) are zero while fitting only the smaller model. Like the classical score test it measures how far the score of the omitted terms is from zero, but it estimates the variance of that score empirically with a sandwich formula after removing the part explained by the kept terms. The test therefore keeps its size when the variance function is wrong, such as overdispersed counts or heteroscedastic errors, and, with a cluster column, when observations within clusters are correlated, as in a GEE with independence working correlation.
일반화선형모형(선형, 로지스틱, 포아송)의 일부 계수가 0인지를 작은 모형만 적합하여 검정합니다. 고전적 점수 검정처럼 빠진 항의 점수가 0에서 얼마나 떨어져 있는지를 재지만, 남긴 항이 설명하는 부분을 제거한 뒤 그 점수의 분산을 샌드위치 공식으로 경험적으로 추정합니다. 그래서 과대산포 계수자료나 이분산 오차처럼 분산 함수가 틀려도, 군집 열을 주면 군집 안 관측값이 상관되어 있어도(독립 작업상관의 GEE처럼) 검정의 크기가 유지됩니다.
Do these extra variables improve my model, judged in a way that does not rely on the variance assumptions or on independence within clusters?
분산 가정이나 군집 내 독립성에 기대지 않는 방식으로 판단할 때, 이 추가 변수들이 내 모형을 개선합니까?
The method returns the robust score chi-square statistic with its degrees of freedom and p-value, the model-based score statistic for comparison, the number of clusters, the restricted coefficients and the score and robust standard error of each tested term.
When to use Generalized (Robust) Score Test
- You test added terms in a linear, logistic or Poisson model and doubt the variance assumption.
- Observations are grouped in clusters and you want a cluster-robust test.
- The larger model is hard to fit, for example because of separation, so only the smaller model should be fitted.
When to use something else
- The model is correctly specified and you want the classical test: use Score (Rao / Lagrange Multiplier) Test of Nested GLM Restrictions
- You want the full marginal model with estimated correlation: use Generalized Estimating Equations (GEE)
Assumptions and requirements
- The mean model under the null hypothesis is correct
- Independent clusters (or observations), enough of them for the sandwich variance
- Canonical link for the chosen family
What the analysis reports
- Robust score statistic, df and p-value
- Model-based score statistic
- Restricted-model coefficients
- Score and robust standard error per tested term
How to report it
A generalized score test with a cluster-robust sandwich variance ([value] clusters) of the coefficients of [value] gave chi2([value]) = [value], p = [value].
Related methods
- Score (Rao / Lagrange Multiplier) Test of Nested GLM Restrictions
- Generalized Estimating Equations (GEE)
- Poisson Regression Model
- Binary Logistic Regression
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 Generalized (Robust) Score Test on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 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.