Conditional Log-Odds Contrasts
- Conditional log-odds contrasts are differences on the logit scale between conditional probabilities that quantify changes in odds ratios across varying covariate or treatment settings.
- They are employed in logistic regression, contingency table analysis, and causal inference to compare covariate configurations, ensuring context-free interpretation under fixed conditioning structures.
- These contrasts facilitate robust estimation and inference through methods such as linear contrast evaluation, kernel smoothing, and Bayesian adjustments, with applications in fields like epidemiology and compositional data analysis.
Conditional log-odds contrasts are differences on the logit scale between two conditional probability statements, typically comparing covariate settings, treatment arms, strata, or cell configurations while holding a conditioning structure fixed. In the simplest logistic-regression form, the contrast is with ; exponentiation yields an odds ratio, (Martínez, 24 Apr 2025). Across the literature, the same core object appears as a multivariable event contrast in binary logistic regression, a conditional log-multiplicative contrast in contingency tables, a stratum-specific treatment effect in conditional logistic regression, a pointwise odds ratio in nonparametric contingency-table smoothing, and a pairwise logit contrast in compositional models (Martínez, 24 Apr 2025).
1. Definition and basic algebra
In the binary-predictor logistic model studied by Martínez, the outcome is binary, predictors are binary and coded $0/1$, there are no interactions, and the model is
In vector form,
An “event” is a specific realization , with and . For reference and target events 0, the paper writes
1
This event-based representation is the paper’s central formulation of multivariable odds ratios (Martínez, 24 Apr 2025).
In the broader contingency-table formulation of multiplicative contrasts, a generalized odds ratio is any functional
2
with log-transform
3
After partitioning cells into margins 4 and reparameterizing 5 for 6, the log-contrast decomposes as
7
where
8
When the coefficients sum to zero within each constrained margin, 9 for all 0, then 1 and the contrast depends only on within-margin conditional parameters 2; in that case, the paper identifies 3 as a conditional log-odds contrast (Stern et al., 27 Apr 2026).
These two formulations are algebraically aligned. In Martínez’s setting, the basis is simply 4, so the contrast vector is 5 and
6
This suggests that the event calculus in a main-effects logit model is a special case of the more general contrast principle 7 (Martínez, 24 Apr 2025).
2. Logistic-regression realization and group contrasts
Martínez distinguishes the standard univariable odds ratio from a multivariable generalization. For a single predictor 8 changing from 9 to $0/1$0, the basic odds ratio is
$0/1$1
More generally, if two events differ only in predictor $0/1$2, then $0/1$3 and $0/1$4. For a subset $0/1$5 of predictors that simultaneously change from $0/1$6 to $0/1$7, the “Group Odds Ratio” is
$0/1$8
With $0/1$9 as reference and 0,
1
Under the paper’s no-interaction main-effects logit, the group odds ratio is therefore the product of the basic odds ratios (Martínez, 24 Apr 2025).
The paper emphasizes a context-free property. Without interactions, changing 2 from 3 gives 4 regardless of the levels of the other predictors, provided they are unchanged. The worked examples for 5 and 6 make this explicit: for 7, the contrast for changing 8 from 9 to 0 is the same as from 1 to 2; for 3, the contrast for changing 4 is the same from 5, 6, 7, or 8 (Martínez, 24 Apr 2025).
The same paper also records inverse contrasts. For the All-Ones to All-Zeros transition in the 9 example,
0
This establishes that reversal of the contrast direction inverts the odds ratio (Martínez, 24 Apr 2025).
Beyond that main-effects setting, the supplied synthesis states that in a general logistic model with basis functions 1,
2
With interactions, contrasts become conditional on other covariates because 3 depends on those covariate values through interaction terms. The illustrative example with two binary predictors and an interaction gives
4
so changing 5 from 6 to 7 given 8 yields
9
The synthesis marks this as beyond the paper’s scope, but it clarifies how conditionality enters once the design basis is no longer additive (Martínez, 24 Apr 2025).
3. Conditioning, margins, and invariance
In contingency tables, conditional log-odds contrasts are characterized by an exact sum-to-zero condition within constrained margins. If a multiplicative contrast 0 is decomposed into 1, then 2 carries the marginal contribution and 3 the within-margin conditional contribution. Under multinomial sampling and a constrained model in which partition sums 4 are fixed, and assuming 5 and 6 are independent a priori, the posterior distribution of 7 is identical under constrained and unconstrained sampling if and only if 8 for each constrained margin 9 (Stern et al., 27 Apr 2026).
The canonical example is the 0 odds ratio. With flattened cell ordering 1 and coefficient vector 2, the coefficients sum to zero within each row margin and within each column margin. Hence the posterior of the odds ratio is invariant whether one fixes rows or fixes columns. The same paper notes a cautionary exception: fixing both row and column margins simultaneously in a 3 table leads to a noncentral hypergeometric sampling model, and invariance no longer holds even though it holds when fixing either single margin alone (Stern et al., 27 Apr 2026).
This invariance perspective intersects with a different issue: collapsibility. Rudas studies parameters of association in multivariate binary distributions and proves that no parameter satisfying two simple assumptions and depending only on conditional distributions, “like the odds ratio does,” can be directionally collapsible. Under Properties 1 and 4 in that paper, the sign of any such parameter must equal the sign of the multivariate log-odds ratio, and therefore Simpson’s paradox cannot in general be excluded (Rudas, 2014). The same paper characterizes the unique directionally collapsible sign rule: it must agree with the linear contrast
4
A plausible implication is that conditional log-odds contrasts possess a strong conditional interpretation precisely because they ignore some marginal structure; the same feature prevents general directional collapsibility (Rudas, 2014).
In relational models for contingency tables, conditional log-odds contrasts appear as linear functionals of 5. The coordinate-free model is
6
with the dual constraints expressed as generalized odds ratios
7
For a three-way conditional-independence example, the model fixes 8 and 9, hence 0 for both 1, and the conditional log-odds contrast across strata is zero (Klimova et al., 2011).
4. Estimation and inference
For linear contrasts in logistic regression, the supplied synthesis gives the standard estimation template. With fitted coefficients 2 and covariance matrix 3, any contrast 4 is estimated by 5, with
6
Wald interval
7
and odds-ratio interval obtained by exponentiation:
8
In the event-based binary main-effects model, 9; with 00 as reference, 01 (Martínez, 24 Apr 2025).
Franke and Osius derive asymptotic covariance formulas for the odds-ratio parameter estimator in semiparametric log-bilinear odds ratio models, and their main result is invariance of the estimated asymptotic covariance matrix with respect to unconditional sampling, conditional sampling on 02, conditional sampling on 03, and Poisson sampling (Franke et al., 2011). In the log-bilinear model,
04
so a conditional log-odds contrast is any linear functional 05, with variance
06
The same paper gives the Wald statistic for 07:
08
This unifies cohort, case-control, and unconditional designs for inference on association parameters (Franke et al., 2011).
In nonparametric estimation of local association, Simonoff-style model-free smoothing is replaced by kernel regression of the conditional cell probabilities 09 in the paper on pointwise odds ratios. The Nadaraya–Watson estimators are
10
and the pointwise conditional odds ratio is
11
To stabilize estimation, the paper recommends the amended estimator
12
with
13
For inference, it gives a delta-method interval and a multinomial-1 bootstrap percentile interval, and recommends the amended estimator II as simple, stable, and lower-MSE than the unamended plug-in estimator (Hui et al., 2012).
A compact comparison of contrast representations follows.
| Setting | Contrast | Odds-ratio form |
|---|---|---|
| Binary main-effects logit | 14 | 15 |
| General logistic basis | 16 | 17 |
| Margin-constrained table | 18 | 19 |
5. Design-specific and modern estimation frameworks
In causal treatment-effect estimation, the target is often the conditional odds ratio
20
where 21 (Ge et al., 12 Apr 2026). Under consistency, unconfoundedness/ignorability, and positivity/overlap, these quantities are causally identified. The paper develops efficient-influence-function-derived orthogonal pseudo-outcomes for 22, 23, 24, and 25, including
26
These pseudo-outcomes satisfy
27
with 28 second order in nuisance errors. The paper then defines DR-learner and weighted R-learner objectives for conditional log-odds contrasts, recommends cross-fitting and clipping, and reports that DR-LOR is preferable in “complex, data-rich settings,” while SL or LR are preferable in “simpler or data-poor settings” (Ge et al., 12 Apr 2026).
In matched or stratified designs, the conditional log-odds contrast is the additive treatment effect 29 in
30
with conditional odds ratio 31 (Tennenbaum et al., 9 Feb 2026). Standard conditional logistic regression uses only discordant pairs because concordant pairs contribute conditional likelihood equal to 32 given the stratum total. The paper’s contribution is to use concordant pairs to estimate nuisance structure and construct an informative prior on 33, then combine that prior with the discordant-pair conditional likelihood. Across 384 simulation settings, the concordant-informed Bayesian CLR improved power over standard CLR, “particularly at small 34 and in nonlinear models,” and the method is released in the R package bclogit (Tennenbaum et al., 9 Feb 2026).
In rare-events settings with nonuniform negative sampling, naive conditional log-odds contrasts are biased unless the sampling distortion is corrected. Under negative subsampling with selection probability
35
the sample log-odds becomes 36 with 37. The likelihood-based corrected estimator uses
38
with score
39
For a focal exposure 40 and covariates 41, the recovered conditional contrast is
42
The paper proves that the corrected estimator has smaller asymptotic variance than IPW within the class studied and is more robust to pilot misspecification (Wang et al., 2021).
6. Extensions, interpretation, and limitations
Conditional log-odds contrasts extend beyond ordinary binary regression. In compositional data, the advocated multinomial-logit model on the original scale is
43
with exact pairwise conditional log-odds
44
The paper argues that this framework targets arithmetic means on the original scale, handles zero-valued observations without special regularization, and yields Wald tests and confidence intervals through the asymptotic covariance of 45 (Firth et al., 2023).
Several recurring limitations are explicit in the supplied sources. Martínez’s event-based formulas require binary predictors, 46 coding, and no interactions as stated; with interactions or nonlinear terms, contrasts become conditional on other covariates and cease to be context-free (Martínez, 24 Apr 2025). The contingency-table invariance theorem requires prior independence between marginal and conditional parameters; if the prior couples them, posterior invariance can fail even when the sum-to-zero condition holds (Stern et al., 27 Apr 2026). The causal orthogonal-learning paper notes that ratio contrasts are sensitive to extreme probabilities, and recommends clipping, calibration, and overlap diagnostics (Ge et al., 12 Apr 2026). The matched-pair Bayesian CLR paper warns that prior misspecification can inflate type I error and that MCMC diagnostics are essential in complex settings (Tennenbaum et al., 9 Feb 2026). The nonparametric pointwise-odds-ratio paper identifies bandwidth selection and the curse of dimensionality as central practical constraints (Hui et al., 2012).
A broader misconception is that odds-ratio-based contrasts are inherently collapsible across designs or conditioning variables. The supplied materials support a narrower statement. Some invariances are exact: for example, posterior invariance under fixed single margins when coefficients sum to zero within each constrained margin, and asymptotic covariance invariance of log-bilinear odds-ratio estimators across several sampling schemes (Stern et al., 27 Apr 2026). But general directional collapsibility fails for parameters that depend only on conditional distributions, including the odds ratio (Rudas, 2014).
Taken together, these results position conditional log-odds contrasts as a unifying inferential object rather than a single technique. In one line of work they are linear contrasts of logits in regression models; in another they are log-multiplicative contrasts orthogonal to margins; in another they are local, stratum-specific, or pointwise measures of association. The common structure is the passage from a conditional probability comparison to a logit-scale difference whose exponentiation is an odds ratio, with interpretation governed by coding, basis choice, sampling scheme, and the conditioning structure itself (Martínez, 24 Apr 2025).