Within-Between (Hybrid / Mundlak) Random-Effects Model
The within-between (hybrid or Mundlak) model splits each time-varying predictor into its cluster mean and the deviation from that mean and enters both in a random-intercept model, separating within-cluster from between-cluster effects.
within-between(하이브리드·Mundlak) 모형은 시간에 따라 변하는 설명변수를 군집 평균과 그 평균에서의 편차로 나눠 무선절편 모형에 함께 넣어 군집 내 효과와 군집 간 효과를 분리하는 방법입니다.
In my panel of firms, does a firm earn more in years when it spends more on training, and is that different from firms that spend more on average?
기업 패널에서 교육비를 더 쓴 해에 수익이 오르는지, 그리고 그것이 평균적으로 교육비를 많이 쓰는 기업과의 차이와 다른지 알고 싶어요.
Enter the firm-mean-centred training spending and the firm mean as separate predictors in a random-intercept model. The within coefficient equals the fixed-effects estimate, the between coefficient describes differences between firms, and their difference (the contextual effect) is tested with a Wald test that plays the role of a Hausman test.
When to use Within-Between (Hybrid / Mundlak) Random-Effects Model
- You have repeated observations within clusters and predictors that vary both within and between clusters.
- You want fixed-effects (within) estimates but also need effects of cluster-level variables.
- You want to test whether within and between effects differ.
When to use something else
- Only the within effect matters and there are no cluster-level predictors; a fixed-effects regression is simpler.
- The outcome is binary or a count; use a generalized linear mixed model with the same centring.
Assumptions and requirements
- Random intercepts are normal and, after including cluster means, unrelated to the predictors.
- Residuals are independent and normal with constant variance.
- The linear specification of each predictor is adequate.
What the analysis reports
- Within, between and contextual effects with standard errors and tests
- Joint Wald test that within equals between for all predictors
- Random-intercept (and optional slope) variance, residual variance and ICC
How to report it
In a within-between random-intercept model ([value] clusters, n = [value]), the within effect of training was b = [value] (SE = [value]) and the between effect was b = [value] (SE = [value]); the contextual effect was [value], p = [value] (Wald χ²([value]) = [value], p = [value]).
Related methods
- Fixed Effects Panel Regression
- Random Effects Panel Regression
- Hausman Test
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with reference values computed independently in the test suite.
독립 계산. 시험에서 따로 계산한 참조값 대조 참조 시험 1건 통과.
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 Within-Between (Hybrid / Mundlak) Random-Effects Model 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
- 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.