Logistic regression
Logistic regression is one way to generalize the odds ratio beyond two binary variables. Suppose we have a binary response variable "Y" and a binary predictor variable "X", and in addition we have other predictor variables "Z"1, ..., "Zp" that may or may not be binary. If we use multiple logistic regression to regress "Y" on "X", "Z1", ..., "Zp", then the estimated coefficient formula_49 for "X" is related to a conditional odds ratio. Specifically, at the population level