Hierarchical Bayesian ecological inference (Wakefield)
2x2 ecological inference with group-specific rates drawn from logit-normal hierarchies, fitted by MCMC on the exact binomial convolution likelihood.
계층 베이즈 생태학적 추론(Wakefield) — 집단별 비율을 로지트 정규 계층에서 뽑고, 정확한 이항 합성곱 우도로 MCMC 적합하는 2×2 생태학적 추론입니다.
Runs Ecological Inference for 2x2 Tables (Goodman Regression, Duncan-Davis Bounds, King's EI) with: method set to “hierarchical_bayes”.
기본 방법(Ecological Inference for 2x2 Tables (Goodman Regression, Duncan-Davis Bounds, King's EI))에 다음 설정을 고정해 실행합니다: method = hierarchical_bayes.
From precinct totals only, what share of each group turned out to vote?
선거구 합계만으로 집단마다 투표율은 얼마였나요?
Wakefield's hierarchical model treats precinct rates as draws from logit-normal distributions and uses the exact binomial convolution likelihood, sampled by MCMC on one chain; only 2x2 tables are supported. Behind it is Ecological Inference for 2x2 Tables (Goodman Regression, Duncan-Davis Bounds, King's EI) with method = hierarchical_bayes already set; checks and report are the same as for Ecological Inference for 2x2 Tables (Goodman Regression, Duncan-Davis Bounds, King's EI).
When to use Hierarchical Bayesian ecological inference (Wakefield)
- Aggregate data for many units and a 2x2 structure.
- You want uncertainty that respects the count data.
When to use something else
- More than two groups or outcomes; the RxC model is not implemented here.
- You want to try other settings side by side; open Ecological Inference for 2x2 Tables (Goodman Regression, Duncan-Davis Bounds, King's EI) and set the options yourself.
What you still provide
- Data: a table (CSV or Excel) with an outcome variable, predictor (feature) columns and a weight column.
Assumptions and requirements
The same as for Ecological Inference for 2x2 Tables (Goodman Regression, Duncan-Davis Bounds, King's EI):
- Shares are proportions in [0, 1]; units with a group share of exactly 0 or 1 are moved slightly inside.
- Goodman assumes the group rates are constant across units; King assumes they follow a truncated bivariate normal unrelated to the group share.
- Unit estimates draw parameters from their asymptotic normal distribution, without the priors or importance resampling of King's software.
What the analysis reports
The output of Ecological Inference for 2x2 Tables (Goodman Regression, Duncan-Davis Bounds, King's EI), with the preset shown in the settings:
- Goodman estimates of the two group rates with standard errors
- Duncan-Davis bounds per unit and aggregated
- King's EI unit estimates with intervals and aggregate rates with intervals
- Scatter of outcome share against group share
How this is validated
검증 근거
This variant runs the same engine as Ecological Inference for 2x2 Tables (Goodman Regression, Duncan-Davis Bounds, King's EI) with the settings above fixed, so the evidence is that method’s: compared with independent computations. No separate checks of this preset are claimed. Read the base method’s validation record.
이 설정 묶음은 Ecological Inference for 2x2 Tables (Goodman Regression, Duncan-Davis Bounds, King's EI)와 같은 엔진으로 돕니다. 검증 근거는 기본 방법의 것이며, 이 설정만 따로 검증했다고 주장하지 않습니다.
Run this variant
- Data you need
- a table (CSV or Excel) with an outcome variable, predictor (feature) columns and a weight column
- Price
- Same as Ecological Inference for 2x2 Tables (Goodman Regression, Duncan-Davis Bounds, King's EI): 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
- Compared with independent computations, as recorded for Ecological Inference for 2x2 Tables (Goodman Regression, Duncan-Davis Bounds, King's EI) (see its checks)
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.