Alternating Logistic Regressions (GEE with Exchangeable Log Odds Ratio)
Alternating logistic regressions fit a population-averaged logistic model for a clustered binary outcome and, at the same time, model the association between two responses from the same cluster as a pairwise log odds ratio instead of a correlation.
교대 로지스틱 회귀는 군집으로 묶인 이분형 결과에 모집단 평균 로지스틱 모형을 맞추면서, 같은 군집 안 두 응답의 연관을 상관 대신 쌍별 로그 오즈비로 함께 추정하는 방법입니다.
How do my predictors change the probability of the outcome on average, and how strongly do the responses within a cluster go together?
예측변수가 결과 확률을 평균적으로 얼마나 바꾸고, 같은 군집 안의 응답끼리는 얼마나 강하게 함께 움직일까요?
The marginal logistic coefficients are estimated by generalized estimating equations whose working covariance is built from a common pairwise odds ratio; the odds ratio is updated by a conditional logistic equation over all pairs in each cluster, and the two steps alternate until both settle. Robust sandwich standard errors cover both the coefficients and the log odds ratio.
When to use Alternating Logistic Regressions (GEE with Exchangeable Log Odds Ratio)
- The outcome is binary and observations are grouped in clusters such as families, classes, clinics or repeated visits.
- You want population-averaged effects and an interpretable measure of within-cluster association.
- A correlation is a poor association measure because event rates are low or high.
When to use something else
- You want cluster-specific (subject-specific) effects: use Conditional Logistic Regression
- Only the marginal effects matter and the association is a nuisance: use Generalized Estimating Equations (GEE)
- There are fewer than about 20 to 40 clusters; sandwich standard errors are then too small.
Assumptions and requirements
- Binary outcome with a correctly specified logistic mean model
- Clusters are independent of each other
- One common odds ratio describes every pair within a cluster (exchangeable association)
- Enough clusters for the sandwich covariance
What the analysis reports
- Marginal log odds ratios with robust and model-based standard errors
- Within-cluster pairwise log odds ratio with robust confidence interval and test
- Number of clusters, pairs and cluster sizes
How to report it
Alternating logistic regressions on [value] observations in [value] clusters gave a marginal odds ratio of [value] (95% CI [value], [value]) for [predictor]; the within-cluster pairwise odds ratio was [value] (95% CI [value], [value]).
Common variants
자주 쓰는 설정
The same analysis with settings already chosen. Each runs Alternating Logistic Regressions (GEE with Exchangeable Log Odds Ratio) itself, at the same price.
- Nested alternating logistic regression — log or structure set to “nested”
- Full-cluster alternating logistic regression — log or structure set to “fullclust”
- Alternating logistic regression with cluster-level log odds ratio covariates —
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with statsmodels and direct computations (formulas, enumeration or simulation).
독립 계산. statsmodels·직접 계산(식·열거·모의실험) 대조 참조 시험 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 Alternating Logistic Regressions (GEE with Exchangeable Log Odds Ratio) 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
- 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.