Content deleted Content added
m →top: Fix multiple names in cs1|2 template |author= parameters (and aliases); |
Used singular of "strata", wherever appropriate. |
||
Line 2:
==Motivation==
Observational studies use [[stratification (clinical trials)|stratification]] or [[Matching (statistics)|matching]] as a way to control for [[confounding]]. Several tests existed before conditional logistic regression for matched data as shown in [[Conditional logistic regression#Related tests|related tests]]. However, they did not allow for the analysis of continuous predictors with arbitrary
Logistic regression can take into account stratification by having a different constant term for each
:<math> \mathbb{P}(Y_{i\ell}=1|X_{i\ell})=\frac{\exp(\alpha_i + \boldsymbol\beta^\top X_{i\ell})}{1+\exp(\alpha_i + \boldsymbol\beta^\top X_{i\ell})}</math>
where <math>\alpha_i</math> is the constant term for the <math>i</math>th
==Conditional likelihood==
The conditional likelihood approach deals with the above pathological behavior by conditioning on the number of cases in each
:<math>
\begin{align}
Line 21:
</math>
With similar computations, the conditional likelihood of a
:<math>
\mathbb{P}(Y_{ij}=1\text{ for }j\leq k,Y_{ij}=0\text{ for } k<j\leq m|X_{i1},...,X_{im},\sum_{j=1}^m Y_{ij}=k)=\frac{\exp(\sum_{j=1}^k \boldsymbol{\beta}^\top X_{ij})}{\sum_{J\in \mathcal{C} _{k}^{m}} \exp(\sum_{j\in J}\boldsymbol{\beta}^\top X_{ij})},
Line 27:
where <math>\mathcal{C} _{k}^{m}</math> is the set of all subsets of size <math>k</math> of the set <math>\{1,...,m\}</math>.
The full conditional log likelihood is then simply the sum of the log likelihoods for each
==Implementation==
|