Simulation-Based Residual Diagnostics for Mixed Models
Simulation-based residual diagnostics for mixed models compare each observation with many responses simulated from the fitted model, giving scaled quantile residuals that are uniform when the model is correct.
혼합모형의 모의실험 기반 잔차 진단은 각 관측값을 적합 모형에서 모의한 여러 반응과 비교해, 모형이 맞으면 균일분포를 따르는 척도화 분위 잔차를 만드는 방법입니다.
I fitted a Poisson mixed model to clinic visit counts; how can I check whether it fits, given that ordinary residuals of count models are hard to read?
병원 방문 횟수에 포아송 혼합모형을 맞췄는데, 개수 모형의 보통 잔차는 읽기 어려워서 적합도를 어떻게 점검해야 할지 모르겠어요.
Simulate several hundred data sets from the fitted model, place each observed value within its simulated distribution, and treat that position as a residual between 0 and 1. A uniformity test, a dispersion test, a zero-inflation test and an outlier count then show whether the model reproduces the data.
When to use Simulation-Based Residual Diagnostics for Mixed Models
- You fitted a linear, logistic or Poisson model with a cluster random intercept and want to check its fit.
- Raw or Pearson residuals are hard to interpret because the outcome is binary or a count.
- You suspect overdispersion or excess zeros.
When to use something else
- There is no clustering; use residual diagnostics for an ordinary generalized linear model.
- The model has several random slopes or other families; this procedure covers a single random intercept with Gaussian, binomial or Poisson responses.
Assumptions and requirements
- The fitted model is the one to be checked; simulations draw new cluster effects from it.
- Enough simulations are run for the residual of each observation to be resolved (250 by default).
What the analysis reports
- Scaled quantile residuals for each observation
- Kolmogorov-Smirnov test of uniformity
- Simulation-based dispersion, zero-inflation and outlier tests
- Normal-score Q-Q plot and residual-versus-predicted plot
How to report it
Simulation-based scaled residuals ([value] simulations from the fitted model) showed no significant deviation from uniformity (KS D = [value], p = [value]); the dispersion ratio was [value] (p = [value]) and [value] observations fell outside the simulated range (p = [value]).
Common variants
자주 쓰는 설정
The same analysis with settings already chosen. Each runs Simulation-Based Residual Diagnostics for Mixed Models itself, at the same price.
- Conditional and marginal studentized residuals — classic residuals set to “on”
Related methods
- Generalized Linear Mixed Model (GLMM)
- GLM Residual Diagnostics (Deviance, Pearson, Randomized Quantile Residuals)
- Linear Mixed-Effects Model
How this method is validated
이 방법의 검증 근거
- Automated tests. Checked by automated run tests; no external reference comparison is recorded yet.
자동 시험. 자동 실행 시험을 거칩니다. 외부 참조값과 대조한 기록은 아직 없습니다.
Run Simulation-Based Residual Diagnostics for Mixed Models on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, predictor (feature) columns and a cluster ID
- 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
- Automated run tests; no external reference comparison yet
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.