Bayesian Conditional Logistic Regression
Bayesian analysis of matched data (for example matched case-control studies) based on the conditional likelihood, which removes each matched set's own intercept. Normal priors are placed on the log odds ratios and the posterior is sampled by Hamiltonian Monte Carlo, so odds ratios come with credible intervals even when sets are few or sparse.
짝지은 자료(예: 짝지은 환자-대조군 연구)를 조건부 우도로 분석하는 베이즈 방법으로, 짝 묶음마다 다른 절편을 제거합니다. 로그 오즈비에 정규 사전분포를 두고 해밀토니안 몬테카를로로 사후분포를 뽑으므로, 묶음이 적거나 노출이 드물어도 오즈비의 신용구간을 얻습니다.
In a 1:4 matched case-control study, how strongly is a past exposure associated with disease, with a credible interval that remains sensible for a small number of matched sets?
1:4로 짝지은 환자-대조군 연구에서 과거 노출과 질병의 연관은 얼마나 강하며, 짝 묶음이 적어도 믿을 만한 구간은 무엇입니까?
The method returns posterior summaries of each log odds ratio and odds ratio, the posterior probability of a positive association, and sampler diagnostics; sets with no case or no control are dropped automatically.
When to use Bayesian Conditional Logistic Regression
- Cases and controls are matched in sets, or the data form strata with set-specific baselines
- Few matched sets or sparse exposures make large-sample intervals unreliable
- Prior information on effect sizes should be included
When to use something else
- A frequentist analysis is wanted: use Conditional Logistic Regression
- Very small samples call for exact inference: use Exact Conditional Logistic Regression
- The data are not matched: use Bayesian Probit Regression
Assumptions and requirements
- Effects are common across matched sets
- Matched sets are independent
- Normal priors on standardised coefficients
What the analysis reports
- Posterior log odds ratios and odds ratios with credible intervals
- Posterior probability of a positive effect
- R-hat, effective sample size and divergences
How to report it
A Bayesian conditional logistic regression gave an odds ratio of [value], 95% CrI [[value], [value]], P(beta > 0) = [value].
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with statsmodels and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-8.
독립 계산. statsmodels·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-8).
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 Bayesian Conditional Logistic Regression on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, predictor (feature) columns and a cluster ID
- Price
- 900 credits for one analysis up to 10,000 rows (complexity level 5); larger or wider data costs more. Optional methodologist review: 3600 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.