Singular Fit Diagnostic for Mixed Models (Random-Effects PCA)
A linear mixed model with random intercepts and random slopes can ask for more variance and correlation parameters than the data support. The method fits the model by restricted maximum likelihood, then takes the principal components of the estimated random-effects covariance. When one or more components have practically zero variance the fit is singular: the random-effects structure is overparameterised and should be simplified.
무선 절편과 무선 기울기를 넣은 선형 혼합모형은 자료가 뒷받침하는 것보다 많은 분산·상관 모수를 요구할 수 있습니다. 이 방법은 제한최대우도로 모형을 적합한 뒤 추정된 무선효과 공분산의 주성분을 구합니다. 분산이 사실상 0인 성분이 있으면 적합이 특이(singular)한 것이며, 무선효과 구조를 단순화해야 합니다.
Is my mixed model's random-effects structure too complex for the data, giving a singular fit?
혼합모형의 무선효과 구조가 자료에 비해 지나치게 복잡해 특이 적합이 생겼는지 어떻게 확인합니까?
The method returns the variance components and correlations, the relative Cholesky factor, the standard deviation and share of variance of each random-effects principal component, a singular-fit flag and the number of components needed for 99.9% of the random-effect variance, together with the fixed effects.
When to use Singular Fit Diagnostic for Mixed Models (Random-Effects PCA)
- You fitted or plan a maximal random-effects structure with several random slopes.
- Software warned of a boundary or singular fit and you want to see which dimension is empty.
- You want to decide which random terms to drop before reporting.
When to use something else
- You only need the multilevel model itself: use Hierarchical Linear Modeling (HLM)
- The outcome is binary or a count: use Generalized Linear Mixed Model (GLMM)
- You want to check residual patterns of a mixed model: use Simulation-Based Residual Diagnostics for Mixed Models
Assumptions and requirements
- Normal random effects and residuals
- Groups independent of each other
- One grouping factor
What the analysis reports
- Random-effects PCA standard deviations and proportions
- Singular-fit flag
- Variance components and correlations
- Fixed effects with Wald z tests
How to report it
The maximal model was singular: the random-effects PCA gave standard deviations of [value] and [value], and [value] of [value] components explained 99.9% of the random-effect variance, so the slope correlation was removed.
Related methods
- Hierarchical Linear Modeling (HLM)
- Variance Components Analysis (Random-Effects ANOVA)
- Generalized Linear Mixed Model (GLMM)
How this method is validated
이 방법의 검증 근거
- Independent computation. 2 reference tests compare the results with statsmodels and direct computations (formulas, enumeration or simulation).
독립 계산. statsmodels·직접 계산(식·열거·모의실험) 대조 참조 시험 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 Singular Fit Diagnostic for Mixed Models (Random-Effects PCA) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, predictor (feature) columns and a grouping variable
- 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.