Hierarchical Related Regression Combining Aggregate and Individual Data
Estimates individual-level effects on a binary outcome by combining area-level counts (events, population and covariate shares) with individual records from a survey in one likelihood. Area counts are modelled as the average individual risk over the area's covariate mix, and an area random effect links the two sources.
지역별 집계(사건 수, 인구, 공변량 비율)와 조사에서 얻은 개인 기록을 하나의 가능도로 결합해 이분형 결과에 대한 개인 수준 효과를 추정합니다. 지역 집계는 그 지역 공변량 구성에 대한 개인 위험의 평균으로 모형화하고, 지역 확률효과가 두 자료를 연결합니다.
What is the effect of smoking on hospital admission when admissions are known only as counts per district, but a small survey records smoking and admission for some residents?
입원이 구별 건수로만 알려져 있고 일부 주민에 대해서만 흡연과 입원을 조사했을 때, 흡연이 입원에 미치는 효과는 얼마입니까?
Odds ratios with confidence intervals from the combined data, the area random-effect spread, and the estimates from aggregate-only and individual-only data for comparison.
When to use Hierarchical Related Regression Combining Aggregate and Individual Data
- Outcome counts exist only by area but a sample of individual records is available
- You want to reduce ecological bias in area-level regression
- Covariates are binary characteristics with known area shares
When to use something else
- Only a 2 x 2 ecological table per area is available: use Ecological Inference for 2x2 Tables (Goodman Regression, Duncan-Davis Bounds, King's EI)
- All data are individual records: use Probit Regression Model
Assumptions and requirements
- Within an area, binary covariates are independent unless only one is used
- Individual records are a small sample of the area populations
- Area effects are normal
What the analysis reports
- Odds ratios with confidence intervals
- Area random-effect standard deviation
- Comparison with aggregate-only and individual-only fits
- Fit of the area counts
How to report it
Combining [value] area counts with [value] individual records, the odds ratio for smoking was [value] (95% CI [value], [value]).
Related methods
- Ecological Inference for 2x2 Tables (Goodman Regression, Duncan-Davis Bounds, King's EI)
- Areal Rate Smoothing (Empirical Bayes, Spatial Empirical Bayes, Headbanging)
How this method is validated
이 방법의 검증 근거
- R cross-check. 16 reported values agree with R (lme4::glmer, lme4::vcov.merMod, lme4::VarCorr, lme4::logLik) within a tolerance of 2e-3; the largest observed difference is 4e-7.
R 교차 검증. R(lme4::glmer, lme4::vcov.merMod, lme4::VarCorr, lme4::logLik) 대조: 보고 값 16개가 허용오차 2e-3 안에서 일치합니다(관측된 최대 차이 4e-7).
- Supporting tables vs R. Descriptive statistics and assumption checks shown with the results (95 values) agree with R (psych::describe, base::table, stats::quantile, stats::t.test) within 1e-6. This covers the supporting tables, not the main estimates.
보조 표 R 대조. R(psych::describe, base::table, stats::quantile, stats::t.test) 대조: 결과와 함께 나오는 기술통계·가정 점검 값 95개가 1e-6 안에서 일치합니다. 본 추정치가 아니라 보조 표에 대한 대조입니다.
- Independent computation. 2 reference tests compare the results with SciPy, statsmodels and direct computations (formulas, enumeration or simulation).
독립 계산. SciPy·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 Hierarchical Related Regression Combining Aggregate and Individual Data on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, predictor (feature) columns, a unit (entity) ID, a grouping variable and a weight column
- 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.