Penalised and Best-Subset Selection of Fixed Effects in Mixed Models
Selects fixed effects in a linear or generalised linear mixed model with a cluster random intercept, either by an l1 (lasso) penalty on the coefficients whose strength is chosen by BIC or AIC, or by an exhaustive best-subset search when there are few predictors.
군집 무선절편이 있는 선형 또는 일반화 선형 혼합모형에서 고정효과를 선택합니다. 계수에 l1(라쏘) 벌점을 주고 그 크기를 BIC나 AIC로 고르거나, 예측변수가 적을 때는 모든 부분집합을 탐색합니다.
Which of 15 school-level and pupil-level predictors matter for test scores once pupils are clustered in schools?
학생이 학교에 묶여 있을 때 학교와 학생 수준 예측변수 15개 가운데 시험 점수에 중요한 것은 무엇입니까?
The selected predictors, the penalty path, penalised and refitted coefficients, the random-intercept variance and an optimality check of the penalised fit.
When to use Penalised and Best-Subset Selection of Fixed Effects in Mixed Models
- Many candidate predictors with clustered data
- Binary or count outcomes with a random intercept
- A sparse, interpretable mixed model is wanted
When to use something else
- Data are not clustered: use Regularised Regression (Ridge, Lasso, ElasticNet)
- Predictors are already chosen: use Generalized Linear Mixed Model (GLMM)
Assumptions and requirements
- A random intercept captures the clustering
- Laplace approximation adequate for non-Gaussian outcomes
- Refit p-values are not post-selection valid
What the analysis reports
- Selected predictors and criterion values
- Penalty path
- Refitted coefficients with standard errors
- Variance components
How to report it
BIC selected [value] of [value] predictors ([names]); the random-intercept variance was [value].
Related methods
- Generalized Linear Mixed Model (GLMM)
- Regularised Regression (Ridge, Lasso, ElasticNet)
- Best Subset Regression
How this method is validated
이 방법의 검증 근거
- R cross-check. 17 reported values agree with R (lme4::lmer, lme4::glmer) within a tolerance of 1e-4; the largest observed difference is 4e-5.
R 교차 검증. R(lme4::lmer, lme4::glmer) 대조: 보고 값 17개가 허용오차 1e-4 안에서 일치합니다(관측된 최대 차이 4e-5).
- Supporting tables vs R. Descriptive statistics and assumption checks shown with the results (276 values) agree with R (psych::describe, stats::cor.test, stats::quantile, stats::t.test) within 1e-6. This covers the supporting tables, not the main estimates.
보조 표 R 대조. R(psych::describe, stats::cor.test, stats::quantile, stats::t.test) 대조: 결과와 함께 나오는 기술통계·가정 점검 값 276개가 1e-6 안에서 일치합니다. 본 추정치가 아니라 보조 표에 대한 대조입니다.
- Independent computation. 2 reference tests compare the results with SciPy, statsmodels and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-5.
독립 계산. SciPy·statsmodels·직접 계산(식·열거·모의실험) 대조 참조 시험 2건 통과(허용오차 1e-5).
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 Penalised and Best-Subset Selection of Fixed Effects in Mixed Models on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, predictor (feature) columns and a cluster ID
- 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
- Results cross-checked against R
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.