---
title: Moderated Causal Excursion Odds Ratio
url: https://www.emergentmind.com/topics/moderated-causal-excursion-odds-ratio
type: topic
---

# Moderated Causal Excursion Odds Ratio

Moderated causal excursion odds ratio is a causal estimand for micro-randomized trials (MRTs) with longitudinal binary outcomes that quantifies how the effect of a time-varying intervention varies with prespecified moderators at a given decision time. It is the odds-ratio-scale analogue of the causal excursion effect developed for mobile health and related sequentially randomized settings, and it is used to characterize marginal or moderated intervention effects while conditioning only on chosen summary variables rather than the full treatment and covariate history. In the recent literature, the construct appears both in standard individual-level MRTs and in clustered settings with possible between-cluster treatment effect heterogeneity and within-cluster interference [2509.20555].

## 1. Conceptual definition

For a generic participant at decision point $t=1,\dots,T$, let $A_t\in\{0,1\}$ denote randomized treatment, $Y_{t+1}\in\{0,1\}$ a binary proximal outcome, $X_t$ the prespecified moderator(s), $H_t$ the history up to just before $A_t$, and $I_t\in\{0,1\}$ the availability indicator. Under standard consistency, positivity, and sequential ignorability assumptions, the moderated causal excursion odds ratio at time $t$ for moderator value $x$ is defined by

$$
\mathrm{OR}_t(x)=
\frac{P(Y_{t+1}=1\mid A_t=1,X_t=x,I_t=1)/P(Y_{t+1}=0\mid A_t=1,X_t=x,I_t=1)}
{P(Y_{t+1}=1\mid A_t=0,X_t=x,I_t=1)/P(Y_{t+1}=0\mid A_t=0,X_t=x,I_t=1)}.
$$

This quantity compares the odds of the proximal binary outcome under treatment versus control at the same decision time, within a stratum of the moderator. To obtain a low-dimensional target, the literature defines a best linear projection
$$
\beta^*=\arg\min_\beta \sum_t \omega(t)\,E\left\{\left[\log \mathrm{OR}_t(X_t)-f_t(X_t)^\top \beta\right]^2\right\},
$$
where $f_t(X_t)$ is a user-chosen feature vector and $\omega(t)\ge 0$ are weights with $\sum_t \omega(t)>0$ [2509.20555].

The odds-ratio formulation is distinct from the earlier relative-risk formulation, but it addresses the same scientific objective: estimation of a time-varying moderated intervention effect in an MRT. A practical implication is that the target is explicitly scale-specific. This is consistent with the recommendation that causal risk difference, relative risk, and odds ratio all be reported in MRTs with binary outcomes, since effect moderation can differ in direction across scales [2509.20555].

## 2. Origins in causal excursion effects for binary outcomes

The immediate precursor is the moderated causal excursion effect for binary proximal outcomes on the log-relative-risk scale. In that formulation, with $S_t$ denoting a moderator formed from $H_t$, the causal excursion effect is
$$
\beta_M(t,S_t)\equiv
\log
\frac{E[Y_{t,\Delta}(A_{t-1},1,0,\dots,0)\mid S_t(A_{t-1}),I_t=1]}
{E[Y_{t,\Delta}(A_{t-1},0,0,\dots,0)\mid S_t(A_{t-1}),I_t=1]},
$$
often modeled parametrically as $\beta_M(t,S_t)=S_t^\top\beta$ [1906.00528].

That framework was developed for MRTs in which each individual is repeatedly randomized among intervention options over many decision times and the primary outcome may be a longitudinal binary outcome. The estimation strategy introduced there used a working nuisance model for the counterfactual mean under no treatment,
$$
E[Y_{t,\Delta}(\dots 0)\mid H_t,A_t=0,I_t=1]=\exp[g(H_t)^\top \alpha],
$$
a “blipped-down” outcome $U_{t,\Delta}(\beta)=Y_{t,\Delta}\exp\{-A_tS_t^\top\beta\}$, and an inverse-probability-weight coupling $J_t$ that both holds subsequent treatments at $0$ and recenters treatment assignment from the full history $H_t$ to the lower-dimensional moderator $S_t$ [1906.00528].

Within that literature, the odds-ratio-scale version was not formally developed in full detail. The explicit statement was that one could in principle replace the log-link by a logit-link to target odds ratios, replace the blipped-down factor by the appropriate logistic structural nested mean model g-estimator weight, and carry the semiparametric efficiency machinery through with the redefined efficient score. This places moderated causal excursion odds ratio as a direct methodological continuation rather than a separate conceptual object [1906.00528].

## 3. Direct and indirect log-odds excursion effects under clustering and interference

A more general formulation arises when MRT data are clustered and the binary outcome may be affected not only by an individual’s own treatment but also by treatment assigned to others in the same cluster. Let clusters $m=1,\dots,M$ have size $G_m$. For individual $j\in\{1,\dots,G_m\}$ in cluster $m$ at decision time $t=1,\dots,T$, let $H_t$ be the collection of past treatments $A_{1:t-1}$ and covariates $O_{1:t}$, and let $A_{t,j}\in\{0,1\}$ be randomized with known probability $p_t(A_{t,j}\mid H_t)$. Let $Y_{t,\Delta,j}\in\{0,1\}$ denote the binary outcome measured $\Delta$ steps after $t$, with potential outcome
$$
Y_{t,\Delta,j}(\bar a_{1:t-1},a_t,\bar a_{t+1:t+\Delta-1}).
$$
Let $S_t(\bar a_{1:t-1})$ be a vector of effect moderators at time $t$, possibly containing both individual-level and cluster-level functions of past history, and choose a reference individual $J$ uniformly at random in $\{1,\dots,G_m\}$ [2212.01472].

In this setting, the moderated direct log-odds excursion effect for a given $t$ and moderator value $s$ is
$$
\mathrm{CE}_{\logit}^{DE}(t;s)
=
\logit P\{Y_{t,\Delta,J}(\dots,A_t=1,\dots)=1\mid S_t=s\}
-
\logit P\{Y_{t,\Delta,J}(\dots,A_t=0,\dots)=1\mid S_t=s\},
$$
with corresponding odds ratio
$$
\mathrm{OR}^{DE}(t;s)=\exp\{\mathrm{CE}_{\logit}^{DE}(t;s)\}.
$$
Each probability is taken under a reference distribution for future treatments $\bar a_{t+1:t+\Delta-1}$, such as the original randomization probabilities or a fixed regime $\pi$ [2212.01472].

To capture within-cluster interference, the same framework defines a pairwise-indirect log-odds effect by selecting two distinct random indices $J$ and $J'$ in a cluster and comparing the log-odds of $Y_{t,\Delta,J}$ when $J'$ is assigned treatment versus control, holding $J$’s own treatment at zero:
$$
\mathrm{CE}_{\logit}^{IE}(t;s)
=
\logit P\{Y_{t,\Delta,J}(\dots,A_{t,J}=0,A_{t,J'}=1)=1\mid S_t=s\}
-
\logit P\{Y_{t,\Delta,J}(\dots,A_{t,J}=0,A_{t,J'}=0)=1\mid S_t=s\},
$$
with
$$
\mathrm{OR}^{IE}(t;s)=\exp\{\mathrm{CE}_{\logit}^{IE}(t;s)\}.
$$

This distinction between direct and pairwise-indirect effects is central when the scientific question concerns both individualized treatment effects and spillover within the cluster. It also marks a substantive extension beyond earlier individual-level excursion-effect formulations, because the target estimands explicitly accommodate between-cluster treatment effect heterogeneity and within-cluster interference [2212.01472].

## 4. Identification and estimation on the logit scale

Identification follows the same core structure as in the broader causal excursion literature. By analogy to Robins’ G-formula, the required assumptions are consistency, positivity, and sequential ignorability or intervention randomization. In the clustered logit formulation, consistency requires that the observed $Y_{t,\Delta,j}$ equal its potential outcome under the realized cluster treatment history; positivity requires $p_t(a\mid H_t)>0$ for all $a$ seen with positive probability; and sequential ignorability requires that, given $H_t$, $A_{t,j}$ be independent of all future potential outcomes. In MRTs, the mobile-trial randomization is designed to implement exactly such a sequential randomization scheme, possibly depending on $H_t$ [2212.01472].

For moderated direct effects, the proposed estimator uses a working logistic model
$$
\logit E[Y_{t,\Delta,j}\mid H_t,A_{t,j},S_t]
=
g_t(H_t)^\top \alpha + A_{t,j}\,f_t(S_t)^\top \beta,
$$
where $f_t(S_t)$ is a known $q\times 1$ function of the moderator and $g_t(H_t)$ are “control” covariates introduced to improve precision. The method combines this model with two weights:
$$
W_{t,\Delta,j}=\prod_{u=t+1}^{t+\Delta-1}\frac{\pi_u(A_u\mid H_u)}{p_u(A_u\mid H_u)},
\qquad
W_{t,j}=\frac{\tilde p_t(A_{t,j}\mid S_t)}{p_t(A_{t,j}\mid H_t)},
$$
where $\pi_u$ is the chosen reference future regime and $\tilde p_t$ is any function of $S_t$ only, often equal to the marginal $p_t$ [2212.01472].

The estimating equation is a weighted, centered estimating-equation system:
$$
\sum_{m=1}^M \frac{1}{G_m}\sum_{j=1}^{G_m}\sum_{t=1}^{T-\Delta+1}
W_{t,j}W_{t,\Delta,j}\,(A_{t,j}-\tilde p_t(1\mid S_t))\,f_t(S_t)
\Bigl[
Y_{t,\Delta,j}-\expit\{g_t(H_t)^\top\alpha+A_{t,j}f_t(S_t)^\top\beta\}
\Bigr]
=0.
$$
Once $\hat\beta$ is obtained, the moderated log-odds effect at $(t,s)$ is $f_t(s)^\top\hat\beta$ and the moderated odds ratio is $\exp\{f_t(s)^\top\hat\beta\}$ [2212.01472].

For the pairwise-indirect effect, the analogous working model is
$$
\logit E[Y_{t,\Delta,J}\mid H_t,A_{t,J}=0,A_{t,J'}]
=
g_t(H_t)^\top\alpha + (1-A_{t,J})A_{t,J'}\,f_t(S_t)^\top \beta^{IE},
$$
with weights $W_{t,j,j'}=\tilde p_t(A_{t,j},A_{t,j'}\mid S_t)/p_t(A_{t,j},A_{t,j'}\mid H_t)$ and a parallel estimating equation. This produces a single inferential architecture for either direct or pairwise-indirect moderated log-odds effects [2212.01472].

## 5. Robust estimators in individual-level MRTs

For individual-level MRTs, the recent odds-ratio literature proposes two estimators for the best linear projection parameter $\beta^*$. The first is a doubly robust estimator under Simple Randomization, defined by the condition $A_t\perp H_t\mid X_t$, so that $p_t(H_t)=p_t(X_t)$. In this case,
$$
\log \mathrm{OR}_t(X_t)=
\logit E[W_tY_{t+1}\mid X_t,A_t=1,I_t=1]
-
\logit E[W_tY_{t+1}\mid X_t,A_t=0,I_t=1],
$$
where $W_t=1$ if $\Delta=1$ or a known weight for $\Delta>1$. The estimator uses three nuisance functions:
$$
r_t(x)=\logit E(W_tY_{t+1}\mid X_t=x,A_t=0,I_t=1),
$$
$$
m_t(x)=P(A_t=1\mid X_t=x,Y_{t+1}=0,I_t=1),
$$
$$
\mu_t(h_t,a)=E(W_tY_{t+1}\mid H_t=h_t,A_t=a,I_t=1),
$$
and solves a projection-adjusted logistic partially linear score equation $P_n\,SR(\beta,\hat r,\hat m,\hat\mu)=0$ after first fitting $\hat r_t,\hat m_t,\hat\mu_t$ [2509.20555].

The central robustness statement is that, under standard regularity, if either $r_t$ or $m_t$ is consistently estimated for each $t$, then $\hat\beta^{SR}\to\beta^*$. Moreover, if
$$
\|\hat r_t-r_t^*\|\cdot \|\hat m_t-m_t^*\|=o_p(n^{-1/2}),
$$
then
$$
\sqrt{n}(\hat\beta^{SR}-\beta^*)\to \mathrm{Normal}(0,V^{SR}),
$$
with a sandwich-form variance estimated by plug-in sample analogues. The estimator is described as doubly robust and locally efficient among that class [2509.20555].

The second estimator addresses general randomization, when $p_t(H_t)$ depends on $H_t$ beyond $X_t$ and the Simple Randomization condition fails. It introduces an auxiliary association model
$$
\psi_t(x)=\logit\{E(W_tY_{t+1}\mid X_t=x,A_t=1)\}\approx g_t(x)^\top\alpha,
$$
fit by solving
$$
P_n\,Q(\alpha)=\sum_{i,t}\frac{A_t}{p_t(H_t)}
\Bigl\{W_tY_{t+1}-\expit[g_t(X_t)^\top\alpha]\Bigr\}g_t(X_t)=0.
$$
Given $\hat\alpha$, one solves
$$
P_n\,GR(\beta,\alpha,\hat\mu)=0
$$
for $\beta$, where the projected estimating function also uses $\mu_{0t}=E(W_tY_{t+1}\mid H_t,A_t=0)$. If the association model $g_t(X_t)^\top\alpha$ is correctly specified, then $\hat\beta^{GR}\to\beta^*$ and
$$
\sqrt{n}(\hat\beta^{GR}-\beta^*)\to^d N(0,V^{GR}).
$$
Moreover, under the null $H_0:\beta^*=0$, a misspecified association model does not bias the test of no excursion odds ratio, so type I error is controlled. The same construction can be extended to any monotone link functions, including probit or complementary-log-log, by replacing the logit link in both identification and the association model [2509.20555].

## 6. Large-sample theory, empirical performance, and applications

Across the logit-scale literature, the estimators are formulated as M-estimators or Z-estimators with sandwich-type asymptotic variance. In the clustered weighted-centered approach, under regularity the pair $(\hat\alpha,\hat\beta)$ is asymptotically normal:
$$
\sqrt{M}(\hat\beta-\beta^*)\to N(0,V),
\qquad
V=Q^{-1}WQ^{-1},
$$
where $Q=E[\partial m/\partial\beta]$ and $W=\mathrm{Var}(m)$. In practice, the variance is computed as the empirical “bread $\times$ meat $\times$ bread” from the sample of clusters, and when $M<50$ a Mancl–DeRouen small-sample adjustment to the meat is recommended. Under the identifiability assumptions and mild regularity, including a correctly specified linear logit contrast in $f_t(S_t)$, $\hat\beta$ is consistent for the true moderated log-odds parameter $\beta^*$ and jointly asymptotically normal at rate $\sqrt{M}$. Wald confidence intervals on the log-odds scale are then exponentiated to obtain valid confidence intervals for the odds ratio [2212.01472].

The earlier relative-risk formulation yielded analogous asymptotics. Under bounded $g$ and $S$, compact parameter space, and uniqueness of the population estimating-equation solution, one obtains
$$
\sqrt{n}(\hat\beta-\beta)=N(0,\Sigma_M),
$$
with a sandwich form for $\Sigma_M$, and a Mancl–DeRouen leverage adjustment with $t$-quantiles was reported to improve coverage in $n\approx 50$–$100$ settings [1906.00528]. This suggests a continuity of inferential logic across effect scales even though the target estimands differ.

Simulation evidence in the odds-ratio literature was organized around two sets of simulations with $1000$ replicates and $T=20$ decision points per subject. Under Simple Randomization, with $X_t\sim \mathrm{Unif}(0,2)$, specified models for $P(A_t=1\mid X_t,Y_{t+1}=0)$ and $P(Y_{t+1}=1\mid X_t,A_t)$, and implementations varying whether nuisance models were correctly specified or misspecified, $\hat\beta^{SR}$ was unbiased and nominal-CI-covering if at least one of $r_t$ or $m_t$ was correct, whereas it failed if both were wrong. $\hat\beta^{GR}$ was unbiased when $\psi_t$ was correct but could fail otherwise, and logistic GEE/GAM procedures were biased whenever their mean model was misspecified. Under general randomization, only $\hat\beta^{GR}$ remained consistent; SR, GEE, and GAM were biased [2509.20555].

The relative-risk precursor reported simulations varying presence or absence of an important moderator $Z_t$, correct or incorrect nuisance specification, and sample sizes $n=30,50,100$ with $T=30$. The main findings were that the EMEE estimator was consistent for the marginal excursion effect even with misspecified $g(H)$, that naive use of the full-history SNMM-based ECE estimator without including $Z_t$ in $f(H)$ was inconsistent for the marginal effect, and that the small-sample correction restored coverage to approximately $94$–$95\%$ [1906.00528]. In the clustered logit-scale setting, extensive simulation studies were reported to confirm the theory empirically and to show that the proposed procedure provides consistent point estimator and interval estimates with valid coverage [2212.01472].

Empirical illustrations anchor the methodology in mobile health. In BariFit, a 45-participant post-bariatric surgery MRT with $T=112$ daily decision times, the treatment was a daily food-tracking SMS with $p_t=\tfrac12$, and the proximal binary outcome was whether the participant completed a food log that day. The primary marginal analysis with $S_t\equiv 1$ estimated $\beta_0\approx 0.014$ on the log-relative-risk scale, with $95\%$ CI $[-0.028,0.056]$ and $p=0.50$, corresponding to $\mathrm{RR}\approx 1.01$ and no statistically detectable proximal effect; moderation by day-in-study, gender, and previous-day logging was also not significant [1906.00528].

In Drink Less, a 30-day MRT with 349 heavy-drinking adults randomized at 20:00 each day, $A_t=1$ indicated that a notification was sent with probability $0.6$, $X_t$ included decision-point index, whether the app was opened before 20:00, and whether a notification was sent yesterday, and $Y_{t+1}=1$ indicated that the app was opened in the following hour. Using both SR and GR estimators with $f_t(X_t)=(1,S_t)^\top$ and spline terms where appropriate, the estimated marginal log-OR was $1.36$ with $95\%$ CI $[1.18,1.54]$, corresponding to $\mathrm{OR}\approx 3.89$ with interval $[3.25,4.66]$. No moderator slope was statistically significant in any of the three moderation analyses, and SR and GR gave virtually identical results because randomization was constant [2509.20555].

The current methodological picture therefore separates three issues that are sometimes conflated. First, the causal excursion effect is a design-based estimand for sequentially randomized interventions, not merely a regression coefficient. Second, the odds-ratio version is not interchangeable with the relative-risk version, although the two are structurally parallel. Third, clustered MRTs with interference require direct and indirect excursion effects that are not reducible to the standard individual-level estimand. Future work identified in the odds-ratio literature includes nonparametric models for $f_t(X_t)\beta$, sample-size formulas for odds-ratio targets, and efficiency-gain strategies via auxiliary covariates [2509.20555].

Source: https://www.emergentmind.com/topics/moderated-causal-excursion-odds-ratio