Introduction
Many empirical questions concern not only whether an intervention changes an outcome, but also how that change is produced. A policy may affect income through employment and wages, a medical treatment may operate through an intermediate biomarker, and an educational program may alter later outcomes through a sequence of behavioral responses. Causal mediation analysis formalizes such questions by decomposing a total effect into direct and indirect components associated with a mediator. The potential-outcome literature has developed identification and semiparametric theory for controlled, natural direct, and natural indirect effects in cross-sectional settings [14 , 9 , 17 ] . In panel data, however, both treatment and mediator may vary over time, current outcomes may depend on their histories, and the relevant counterfactual is therefore nested over an entire mediator path rather than a single intermediate variable.
Longitudinal extensions of mediation analysis, by allowing exposures and mediators to vary over time, have clarified how dynamic pathways can be defined and identified [18 , 22 , 7 ] . Yet repeated observations also create a problem that is central in many panel applications: persistent unobserved heterogeneity may jointly affect treatment, mediator, and outcome in every period. Conditioning on a rich observed history need not remove this confounding, whereas a conventional fixed-effects regression, by itself, does not identify the nested counterfactuals required for natural effects. At the same time, observed confounding may be high-dimensional and nonlinear, making a fully parametric adjustment fragile. A useful panel mediation method must therefore exploit repeated measurements to accommodate time-invariant unobservables, retain sufficient flexibility for observed confounders, and still deliver valid inference for a decomposition that depends on more than one structural equation.
Double/debiased machine learning (DML) provides a general route to inference on low-dimensional parameters in the presence of complex nuisance functions Chernozhukov et al. [4 ] . Within causal mediation analysis, Farbmacher et al. (2022) construct cross-sectional DML estimators for direct and indirect effects with a binary treatment, and Zenati et al. [21 ] study a mediated response curve with a continuous treatment. More recently, Wei et al. [19 ] develop cross-sectional debiased ML for ultra-high-dimensional mediation, combining orthogonal scores and cross-fitting with screening and regularization for mediator selection and inference. Two contemporaneous contributions develop mediation analysis for difference-in-differences designs: Huber and Oberhänsli [8 ] combine DML with conditional parallel-trends restrictions, while Deng et al. [6 ] derive semiparametric estimators under mediator-adjusted parallel trends. Unlike Huber and Oberhänsli [8 ] , whose mediation effects are identified through conditional parallel trends in a DiD design, our framework targets history-specific mediation effects in a longitudinal panel system and uses sequential conditional independence together with fixed effects to accommodate time-invariant unobserved confounding.
A separate literature extends machine learning and orthogonalization to sequential and panel treatment-effect problems. Lewis and Syrgkanis [12 ] develop DML for dynamic treatment sequences, Semenova et al. [16 ] study heterogeneous effects in high-dimensional dynamic panels under weak dependence, and Clarke and Polselli [5 ] construct DML procedures for static fixed-effects models. Most closely related is Wu and Xiao [20 ] , who develop DML–GMM inference for treatment effects in dynamic panels with two-way fixed effects, general treatment scales, and history-dependent potential outcomes. Their auxiliary-fold construction for eliminating period effects is particularly relevant here. However, moving from treatment effects to mediation effects is not a mechanical stacking of two panel DML regressions. The mediator is both an intermediate response and a regressor in the outcome equation; its estimated innovation is also needed to construct instruments for that equation. Natural effects involve nested counterfactual mediator histories and depend jointly on the parameters of both structural equations and on their estimation covariance. These features create identification, orthogonalization, and inference problems absent from a single-equation treatment-effect analysis.
We develop DML-based causal mediation analysis in panel data with two-way fixed effects; however, this generalization requires overcoming several difficulties. First, the identifying argument must recover nested potential outcomes in a two-equation history-dependent system rather than a single potential-outcome regression. Second, sequential exogeneity does not generally validate contemporaneous instruments after fixed-effect removal. We therefore construct GMM moments from lagged residualized treatment and mediator innovations. The outcome instrument contains an estimated mediator innovation and hence depends on the mediator coefficient. We introduce a nuisance copy of that coefficient, learned outside the score-evaluation fold, so that mediator innovations can be used without making the final GMM score nonlinear in the target parameter. Third, eliminating two-way fixed effects while preserving the independence required by cross-fitting calls for a three-way use of the sample. First differences remove unit effects, and period effects are removed with cross-sectional means computed from an auxiliary fold that is distinct from both the score-evaluation fold and the nuisance-training sample. The resulting mean-subtraction terms induce additional dependence that must be shown to be asymptotically negligible. Fourth, inference for natural effects cannot be obtained by applying a delta method to the structural coefficients alone: the estimators also average individual counterfactual contributions, and the mediator and outcome coefficients are estimated jointly. The influence function must retain both sources of variation and their covariance.
The paper makes three contributions. First, it provides a unified causal framework for history-specific mediation effects in panels. We formulate partially linear models for the potential outcome and potential mediator in which researcher-chosen dictionaries describe dynamic and heterogeneous causal components, while unknown functions flexibly absorb nonlinear observed confounding. Treatments may be binary, multivalued, or continuous, mediators are continuous, and we define history-specific controlled direct, natural direct, natural indirect, and total effects together with their derivative counterparts. Identification relies on sequential conditional independence given the observed history, the relevant unit effect, and the period effects, which permits arbitrary time-invariant confounding and translates the potential-outcome system into observed-data equations governed by the same structural parameters. A distinctive feature of this paper is that two-way fixed effects are allowed in the outcome, mediator, and treatment-assignment models, thereby exploiting repeated observations throughout the treatment–mediator–outcome system. To our knowledge, no existing procedure combines history-specific natural effects, two-way fixed effects in all three equations, sequentially valid residual instruments, and DML-based joint inference.
Second, we develop a DML–GMM procedure tailored to the two-equation mediation system. Sequential exogeneity motivates moments based on lagged residualized treatment and mediator innovations rather than contemporaneous instruments. First differences remove unit effects, while period effects are removed using cross-sectional means from an auxiliary fold that is distinct from both the nuisance-training and score-evaluation samples. Because the outcome instrument contains an estimated mediator innovation, we introduce a fold-specific nuisance copy of the mediator coefficient; this preserves an affine score and a quadratic GMM problem. Jointly stacking the two equations and estimating their full moment covariance retains the cross-equation dependence required for inference on natural direct and indirect effects.
Third, we establish an oracle representation and root-N N N asymptotic normality for the joint estimator of the outcome and mediator parameters under high-level mean-square and product-rate conditions on the first stages. Auxiliary-fold demeaning is shown not to affect the first-order distribution, and a consistent sandwich variance estimator is provided. For any fixed smooth collection of level or derivative effects, we derive an asymptotic linear representation that combines sampling variation in individual counterfactual contrasts with estimation error in both parameter blocks. The resulting theory supports joint Wald inference for direct, indirect, and total effects, including collections whose exact decompositions make the covariance matrix singular.
In simulations with nonlinear time-varying confounding, correlated fixed effects, equation-specific period effects, and sequentially endogenous differenced regressors, the proposed estimator has small bias and near-nominal coverage, whereas a benchmark using the same first-stage learner can fail sharply for the mediator equation and indirect effects. In the U.S. county application, allowing treatment–covariate interactions leaves the estimated total effect essentially unchanged but reduces the estimated mediated share from about 65% to 41%, showing that stability of the total effect alone need not validate its direct–indirect decomposition.
The remainder of the paper is organized as follows. § 2 introduces the causal estimands, the panel mediation model, and the identification conditions. § 3 develops the DML–GMM algorithm and the plug-in estimators of the causal effects. § 4 establishes the asymptotic theory. § 5 and § 6 report the simulation study and empirical application, respectively, and § 7 concludes. Extension to multi- and high-dimensional mediator cases, additional theoretical and numerical results, and proofs are provided in the online supplementary material.
Problem setup
Notation and framework
We consider a balanced panel comprising N N N units observed over T T T periods, with units indexed by i = 1 , … , N i=1,\ldots,N i = 1 , … , N and periods by t = 1 , … , T t=1,\ldots,T t = 1 , … , T . For unit i i i in period t t t , let Y i t ∈ R Y_{it}\in\mathbb{R} Y i t ∈ R , M i t ∈ R M_{it}\in\mathbb{R} M i t ∈ R , D i t ∈ R D_{it}\in\mathbb{R} D i t ∈ R , and X i t : = ( X i t 1 , … , X i t L X ) ′ ∈ R L X X_{it}:=(X_{it1},\ldots,X_{itL_X})^{\prime}\in\mathbb{R}^{L_X} X i t := ( X i t 1 , … , X i t L X ) ′ ∈ R L X denote, respectively, the outcome, the mediator, the treatment, and a L X L_X L X -dimensional vector of observed covariates. In Appendix A, we discuss how to extend our framework to vector-valued or high-dimensional mediators. The framework accommodates continuous mediators and binary, multivalued, or continuous treatments. Within each period, X i t X_{it} X i t is realized before D i t D_{it} D i t , followed by M i t M_{it} M i t and then Y i t Y_{it} Y i t .
We begin by stating the standard causal assumptions required for our analysis. The first is a mediation-specific version of the stable unit treatment value assumption (SUTVA; Imbens and Rubin, [10 ] ).
Assumption 1 (Stable unit treatment value assumption). For each unit, the potential outcome depends only on that unit’s treatment and mediator assignments. Moreover, each treatment and mediator level has a unique version. Equivalently, there is neither interference across units nor hidden variation in treatment or mediator assignments.
We further impose a no-anticipation condition, under which future treatment and mediator assignments cannot affect current or past outcomes.
Assumption 2 (No anticipation). For every t t t , a unit’s potential outcome in period t t t depends only on treatment and mediator assignments through period t t t and is invariant to assignments in periods after t t t .
For any time-indexed variable, such as V i t V_{it} V i t or W t W_t W t , define V ‾ i t : = ( V i 1 , … , V i t ) ′ \overline{V}_{it}:=(V_{i1},\ldots,V_{it})^{\prime} V i t := ( V i 1 , … , V i t ) ′ , W ‾ t : = ( W 1 , … , W t ) ′ \overline{W}_t:=(W_1,\ldots,W_t)^{\prime} W t := ( W 1 , … , W t ) ′ , and W ‾ j : k : = ( W j , … , W k ) ′ \overline{W}_{j:k}:=(W_j,\ldots,W_k)^{\prime} W j : k := ( W j , … , W k ) ′ for j ≤ k j\leq k j ≤ k . Following the potential-outcomes notation of Rubin [15 ] , let Y i t ( d ˉ t , m ˉ t ) Y_{it}(\bar{d}_t,\bar{m}_t) Y i t ( d ˉ t , m ˉ t ) denote the potential outcome for unit i i i in period t t t under treatment history d ˉ t \bar{d}_t d ˉ t and mediator history m ˉ t \bar{m}_t m ˉ t , where d ˉ t \bar{d}_t d ˉ t and m ˉ t \bar{m}_t m ˉ t are possible realizations of D ˉ i t \bar{D}_{it} D ˉ i t and M ˉ i t \bar{M}_{it} M ˉ i t , respectively. Likewise, let M i t ( d ˉ t ) M_{it}(\bar{d}_t) M i t ( d ˉ t ) denote the potential mediator for unit i i i in period t t t under treatment history d ˉ t \bar{d}_t d ˉ t , and define M ˉ i t ( d ˉ t ∗ ) : = ( M i 1 ( d 1 ∗ ) , … , M i t ( d t ∗ ) ) ′ \bar{M}_{it}(\bar{d}^{*}_t) := (M_{i1}(d^{*}_1), \ldots, M_{it}(d^{*}_t))' M ˉ i t ( d ˉ t ∗ ) := ( M i 1 ( d 1 ∗ ) , … , M i t ( d t ∗ ) ) ′ .
To link these potential variables to their observed counterparts, we impose the standard consistency assumption.
Assumption 3 (Consistency). For every unit i i i and period t t t , the observed outcome and mediator coincide with their potential counterparts under the realized treatment and mediator histories: Y i t = Y i t ( D ˉ i t , M ˉ i t ) Y_{it} = Y_{it}(\bar{D}_{it},\bar{M}_{it}) Y i t = Y i t ( D ˉ i t , M ˉ i t ) and M i t = M i t ( D ˉ i t ) M_{it} = M_{it}(\bar{D}_{it}) M i t = M i t ( D ˉ i t ) .
Causal estimands
For two given treatment histories d ˉ t : = ( d 1 , … , d t ) ′ \bar{d}_t := (d_1,\ldots,d_t)' d ˉ t := ( d 1 , … , d t ) ′ and d ˉ t ∗ : = ( d 1 ∗ , … , d t ∗ ) ′ \bar{d}^{*}_t := (d^{*}_1,\ldots,d^{*}_t)' d ˉ t ∗ := ( d 1 ∗ , … , d t ∗ ) ′ , define the nested potential outcome Y i t ( d ˉ t , M ˉ i t ( d ˉ t ∗ ) ) Y_{it}(\bar{d}_t,\bar{M}_{it}(\bar{d}^{*}_t)) Y i t ( d ˉ t , M ˉ i t ( d ˉ t ∗ )) , which sets the treatment history to d ˉ t \bar{d}_t d ˉ t while setting the entire mediator history to its natural value under d ˉ t ∗ \bar{d}^{*}_t d ˉ t ∗ . The following estimands extend the conventional controlled direct, natural direct, and natural indirect effects to treatment and mediator histories; related longitudinal formulations are discussed by VanderWeele and Tchetgen Tchetgen [18 ] .
Definition 1 (History-specific causal effects). For two treatment histories d ˉ t \bar{d}_t d ˉ t and d ˉ t ∗ \bar{d}^{*}_t d ˉ t ∗ , define the following causal effects at time t t t :
For a prespecified mediator history m ˉ t : = ( m 1 , … , m t ) ′ \bar{m}_t := (m_1,\ldots,m_t)' m ˉ t := ( m 1 , … , m t ) ′ , the history-specific controlled direct effect is CDE t ( d ˉ t , d ˉ t ∗ ; m ˉ t ) : = E [ Y i t ( d ˉ t , m ˉ t ) − Y i t ( d ˉ t ∗ , m ˉ t ) ] \operatorname{CDE}_t(\bar{d}_t,\bar{d}^{*}_t;\bar{m}_t) := \mathbb{E}[Y_{it}(\bar{d}_t,\bar{m}_t) - Y_{it}(\bar{d}^{*}_t,\bar{m}_t)] CDE t ( d ˉ t , d ˉ t ∗ ; m ˉ t ) := E [ Y i t ( d ˉ t , m ˉ t ) − Y i t ( d ˉ t ∗ , m ˉ t )] .
The history-specific natural direct effect is NDE t ( d ˉ t , d ˉ t ∗ ) : = E [ Y i t ( d ˉ t , M ˉ i t ( d ˉ t ∗ ) ) − Y i t ( d ˉ t ∗ , M ˉ i t ( d ˉ t ∗ ) ) ] \operatorname{NDE}_t(\bar{d}_t,\bar{d}^{*}_t) := \mathbb{E}[Y_{it}(\bar{d}_t,\bar{M}_{it}(\bar{d}^{*}_t)) - Y_{it}(\bar{d}^{*}_t,\bar{M}_{it}(\bar{d}^{*}_t))] NDE t ( d ˉ t , d ˉ t ∗ ) := E [ Y i t ( d ˉ t , M ˉ i t ( d ˉ t ∗ )) − Y i t ( d ˉ t ∗ , M ˉ i t ( d ˉ t ∗ ))] .
The history-specific natural indirect effect is NIE t ( d ˉ t , d ˉ t ∗ ) : = E [ Y i t ( d ˉ t , M ˉ i t ( d ˉ t ) ) − Y i t ( d ˉ t , M ˉ i t ( d ˉ t ∗ ) ) ] \operatorname{NIE}_t(\bar{d}_t,\bar{d}^{*}_t) := \mathbb{E}[Y_{it}(\bar{d}_t,\bar{M}_{it}(\bar{d}_t)) - Y_{it}(\bar{d}_t,\bar{M}_{it}(\bar{d}^{*}_t))] NIE t ( d ˉ t , d ˉ t ∗ ) := E [ Y i t ( d ˉ t , M ˉ i t ( d ˉ t )) − Y i t ( d ˉ t , M ˉ i t ( d ˉ t ∗ ))] .
The history-specific total effect comparing d ˉ t \bar{d}_t d ˉ t with d ˉ t ∗ \bar{d}^{*}_t d ˉ t ∗ is defined by TE t ( d ˉ t , d ˉ t ∗ ) : = E [ Y i t ( d ˉ t , M ˉ i t ( d ˉ t ) ) − Y i t ( d ˉ t ∗ , M ˉ i t ( d ˉ t ∗ ) ) ] \operatorname{TE}_t(\bar{d}_t,\bar{d}^{*}_t) := \mathbb{E}[Y_{it}(\bar{d}_t,\bar{M}_{it}(\bar{d}_t)) - Y_{it}(\bar{d}^{*}_t,\bar{M}_{it}(\bar{d}^{*}_t))] TE t ( d ˉ t , d ˉ t ∗ ) := E [ Y i t ( d ˉ t , M ˉ i t ( d ˉ t )) − Y i t ( d ˉ t ∗ , M ˉ i t ( d ˉ t ∗ ))] . By construction, this effect admits the decomposition T E t ( d ˉ t , d ˉ t ∗ ) = N D E t ( d ˉ t , d ˉ t ∗ ) + N I E t ( d ˉ t , d ˉ t ∗ ) \mathrm{TE}_t(\bar d_t,\bar d_t^*)=\mathrm{NDE}_t(\bar d_t,\bar d_t^*)+\mathrm{NIE}_t(\bar d_t,\bar d_t^*) TE t ( d ˉ t , d ˉ t ∗ ) = NDE t ( d ˉ t , d ˉ t ∗ ) + NIE t ( d ˉ t , d ˉ t ∗ ) . Unlike the natural direct effect, the controlled direct effect is indexed by a prespecified mediator history and does not generally enter this two-way decomposition.
When both the treatment and mediator are continuous, the history-specific effects defined above can be complemented by local derivative effects that characterize the impact of an infinitesimal change in the treatment at a particular period. Define the nested mean response surface Ψ t ( a ˉ t , b ˉ t ) : = E [ Y i t ( a ˉ t , M ˉ i t ( b ˉ t ) ) ] \Psi_t(\bar a_t,\bar b_t):=\mathbb{E}[Y_{it}(\bar a_t,\bar M_{it}(\bar b_t))] Ψ t ( a ˉ t , b ˉ t ) := E [ Y i t ( a ˉ t , M ˉ i t ( b ˉ t ))] .
Definition 2 (History-specific derivative effects ) For j ≤ t j \le t j ≤ t , define the following derivative effects at time t t t :
For a prespecified mediator history m ˉ t \bar m_t m ˉ t , the controlled direct derivative is C D D t , j ( d ˉ t , m ˉ t ) : = ∂ ∂ d j E [ Y i t ( d ˉ t , m ˉ t ) ] \mathrm{CDD}_{t,j}(\bar d_t,\bar m_t):=\frac{\partial}{\partial d_j}\mathbb{E}[Y_{it}(\bar d_t,\bar m_t)] CDD t , j ( d ˉ t , m ˉ t ) := ∂ d j ∂ E [ Y i t ( d ˉ t , m ˉ t )] .
The natural direct derivative is N D D t , j ( d ˉ t ) : = ∂ ∂ a j Ψ t ( a ˉ t , b ˉ t ) ∣ a ˉ t = b ˉ t = d ˉ t \mathrm{NDD}_{t,j}(\bar d_t):=\left.\frac{\partial}{\partial a_j}\Psi_t(\bar a_t,\bar b_t)\right|_{\bar a_t=\bar b_t=\bar d_t} NDD t , j ( d ˉ t ) := ∂ a j ∂ Ψ t ( a ˉ t , b ˉ t ) a ˉ t = b ˉ t = d ˉ t .
The natural indirect derivative is N I D t , j ( d ˉ t ) : = ∂ ∂ b j Ψ t ( a ˉ t , b ˉ t ) ∣ a ˉ t = b ˉ t = d ˉ t \mathrm{NID}_{t,j}(\bar d_t):=\left.\frac{\partial}{\partial b_j}\Psi_t(\bar a_t,\bar b_t)\right|_{\bar a_t=\bar b_t=\bar d_t} NID t , j ( d ˉ t ) := ∂ b j ∂ Ψ t ( a ˉ t , b ˉ t ) a ˉ t = b ˉ t = d ˉ t .
The corresponding total derivative is T D t , j ( d ˉ t ) : = ∂ E [ Y i t ( d ˉ t , M ˉ i t ( d ˉ t ) ) ] / ∂ d j \mathrm{TD}_{t,j}(\bar d_t):=\partial\mathbb{E}[Y_{it}(\bar d_t,\bar M_{it}(\bar d_t))]/\partial d_j TD t , j ( d ˉ t ) := ∂ E [ Y i t ( d ˉ t , M ˉ i t ( d ˉ t ))] / ∂ d j , which satisfies T D t , j ( d ˉ t ) = N D D t , j ( d ˉ t ) + N I D t , j ( d ˉ t ) \mathrm{TD}_{t,j}(\bar d_t)=\mathrm{NDD}_{t,j}(\bar d_t)+\mathrm{NID}_{t,j}(\bar d_t) TD t , j ( d ˉ t ) = NDD t , j ( d ˉ t ) + NID t , j ( d ˉ t ) by the chain rule.
Mediation model for the potential outcomes
Since the causal estimands are defined in terms of the potential outcomes, to estimate them, we should build models for the potential outcomes instead of the observed outcomes. In this paper, we consider the following partially linear panel mediation model with two-way fixed effects:
Y i t ( d ˉ t , m ˉ t ) = τ Y ( d ˉ t − L : t , m ˉ t − L : t , X ˉ i , t − L : t ) ′ θ 0 + f 0 ( X ˉ i , t − L : t ) + α i Y + λ t Y + ε i t Y , Y_{it}(\bar d_t,\bar m_t)=\tau_Y(\bar d_{t-L:t},\bar m_{t-L:t},\bar X_{i,t-L:t})^\prime\theta_0+f_0(\bar X_{i,t-L:t})+\alpha_i^Y+\lambda_t^Y+\varepsilon_{it}^Y, Y i t ( d ˉ t , m ˉ t ) = τ Y ( d ˉ t − L : t , m ˉ t − L : t , X ˉ i , t − L : t ) ′ θ 0 + f 0 ( X ˉ i , t − L : t ) + α i Y + λ t Y + ε i t Y ,
E ( ε i t Y ∣ X ˉ i t , α i Y , λ t Y ) = 0 , \mathbb{E}(\varepsilon_{it}^Y\mid\bar X_{it},\alpha_i^Y,\lambda_t^Y)=0, E ( ε i t Y ∣ X ˉ i t , α i Y , λ t Y ) = 0 ,
M i t ( d ˉ t ) = τ M ( d ˉ t − L : t , X ˉ i , t − L : t ) ′ γ 0 + g 0 ( X ˉ i , t − L : t ) + α i M + λ t M + ε i t M , M_{it}(\bar d_t)=\tau_M(\bar d_{t-L:t},\bar X_{i,t-L:t})^\prime\gamma_0+g_0(\bar X_{i,t-L:t})+\alpha_i^M+\lambda_t^M+\varepsilon_{it}^M, M i t ( d ˉ t ) = τ M ( d ˉ t − L : t , X ˉ i , t − L : t ) ′ γ 0 + g 0 ( X ˉ i , t − L : t ) + α i M + λ t M + ε i t M ,
E ( ε i t M ∣ X ˉ i t , α i M , λ t M ) = 0 , \mathbb{E}(\varepsilon_{it}^M\mid\bar X_{it},\alpha_i^M,\lambda_t^M)=0, E ( ε i t M ∣ X ˉ i t , α i M , λ t M ) = 0 ,
where L L L is a fixed nonnegative integer that serves as a common upper bound on all lag lengths in the model, and variables before period 1 are treated as 0. τ Y ( d ˉ t − L : t , m ˉ t − L : t , X ˉ i , t − L : t ) ∈ R s Y \tau_Y(\bar{d}_{t-L:t},\bar{m}_{t-L:t},\bar{X}_{i,t-L:t}) \in\mathbb{R}^{s_Y} τ Y ( d ˉ t − L : t , m ˉ t − L : t , X ˉ i , t − L : t ) ∈ R s Y is a researcher-specified outcome dictionary that describes the finite-dimensional dependence of the potential outcome on the recent treatment history, mediator history, and their interactions with each other and with the covariate history. For example, an outcome dictionary containing contemporaneous and lagged treatment and mediator terms, nonlinear transformations, treatment–mediator interactions, and interactions with covariates is τ Y ( d ˉ t − L : t , m ˉ t − L : t , X ˉ i , t − L : t ) = ( d t , d t 2 , d t − 1 , d t d t − 1 , d t X i t 1 , m t , m t − 1 , d t m t ) ′ \tau_Y(\bar{d}_{t-L:t},\bar{m}_{t-L:t},\bar{X}_{i,t-L:t}) = (d_t, d_t^2, d_{t-1}, d_td_{t-1}, d_tX_{it1}, m_t, m_{t-1}, d_tm_t)^\prime τ Y ( d ˉ t − L : t , m ˉ t − L : t , X ˉ i , t − L : t ) = ( d t , d t 2 , d t − 1 , d t d t − 1 , d t X i t 1 , m t , m t − 1 , d t m t ) ′ . τ M ( d ˉ t − L : t , X ˉ i , t − L : t ) ∈ R s M \tau_M(\bar{d}_{t-L:t},\bar{X}_{i,t-L:t}) \in\mathbb{R}^{s_M} τ M ( d ˉ t − L : t , X ˉ i , t − L : t ) ∈ R s M is a researcher-specified mediation dictionary that describes the effect of the recent treatment history and treatment-covariate interaction on the mediator. Terms depending only on the covariate history need not be included in the dictionaries because they are absorbed by the nuisance functions f 0 f_0 f 0 and g 0 g_0 g 0 . The finite-dimensional parameters satisfy θ 0 ∈ R s Y \theta_0 \in\mathbb{R}^{s_Y} θ 0 ∈ R s Y and γ 0 ∈ R s M \gamma_0 \in\mathbb{R}^{s_M} γ 0 ∈ R s M . The unknown functions f 0 f_0 f 0 and g 0 g_0 g 0 may be nonlinear and high-dimensional; α i Y \alpha_i^Y α i Y and α i M \alpha_i^M α i M are unit fixed effects; λ t Y \lambda_t^Y λ t Y and λ t M \lambda_t^M λ t M are time fixed effects; and ε i t Y \varepsilon_{it}^Y ε i t Y and ε i t M \varepsilon_{it}^M ε i t M are the outcome and mediator innovations, respectively.
The common lag length L L L is an upper bound rather than a requirement that every lag have a nonzero effect. Hence, shorter lag structures are nested in the model by setting the corresponding coefficients or dictionary terms equal to zero.
Under the above model specification, after specifying appropriate dictionaries for τ Y \tau_Y τ Y and τ M \tau_M τ M , all causal estimands introduced in § 2.2 can be expressed in terms of the model variables and the parameters θ 0 \theta_0 θ 0 and γ 0 \gamma_0 γ 0 . An explicit calculation illustrating these formulas is provided in Appendix § 9 .
Identification
The causal estimands of § 2.2 compare potential outcomes of the same unit under different treatment and mediator histories, whereas the consistency condition in Assumption 3 reveals only the trajectory that was actually realized. The remaining potential quantities must be recovered from units with different realized histories, which requires the treatment and the mediator to behave as if they were randomly assigned in each period, given the information accumulated up to that period.
Assumption 4 (Sequential conditional independence (SCIA)). For every full treatment history d ˉ T \bar{d}_{T} d ˉ T , every full mediator history m ˉ T \bar{m}_{T} m ˉ T , and every t = 1 , … , T t=1,\ldots,T t = 1 , … , T ,
{ ( X i j , Y i j ( d ˉ j , m ˉ j ) , λ j Y ) j = t + 1 T , Y i t ( d ˉ t , m ˉ t ) } ⊥ D i t ∣ X ˉ i t , D ˉ i , t − 1 = d ˉ t − 1 , M ˉ i , t − 1 = m ˉ t − 1 , α i Y , λ ˉ t Y , (1) \left\{\left(X_{ij},Y_{ij}(\bar{d}_{j},\bar{m}_{j}),\lambda_{j}^{Y}\right)_{j=t+1}^{T},Y_{it}(\bar{d}_{t},\bar{m}_{t})\right\}\perp D_{it}\mid\bar{X}_{it},\bar{D}_{i,t-1}=\bar{d}_{t-1},\bar{M}_{i,t-1}=\bar{m}_{t-1},\alpha_{i}^{Y},\bar{\lambda}_{t}^{Y}, \tag*{(1)} { ( X ij , Y ij ( d ˉ j , m ˉ j ) , λ j Y ) j = t + 1 T , Y i t ( d ˉ t , m ˉ t ) } ⊥ D i t ∣ X ˉ i t , D ˉ i , t − 1 = d ˉ t − 1 , M ˉ i , t − 1 = m ˉ t − 1 , α i Y , λ ˉ t Y , (1) { ( X i j , Y i j ( d ˉ j , m ˉ j ) , λ j Y ) j = t + 1 T , Y i t ( d ˉ t , m ˉ t ) } ⊥ M i t ∣ X ˉ i t , D ˉ i t = d ˉ t , M ˉ i , t − 1 = m ˉ t − 1 , α i Y , λ ˉ t Y , (2) \left\{\left(X_{ij},Y_{ij}(\bar{d}_{j},\bar{m}_{j}),\lambda_{j}^{Y}\right)_{j=t+1}^{T},Y_{it}(\bar{d}_{t},\bar{m}_{t})\right\}\perp M_{it}\mid\bar{X}_{it},\bar{D}_{it}=\bar{d}_{t},\bar{M}_{i,t-1}=\bar{m}_{t-1},\alpha_{i}^{Y},\bar{\lambda}_{t}^{Y}, \tag*{(2)} { ( X ij , Y ij ( d ˉ j , m ˉ j ) , λ j Y ) j = t + 1 T , Y i t ( d ˉ t , m ˉ t ) } ⊥ M i t ∣ X ˉ i t , D ˉ i t = d ˉ t , M ˉ i , t − 1 = m ˉ t − 1 , α i Y , λ ˉ t Y , (2) { ( X i j , M i j ( d ˉ j ) , λ j M ) j = t + 1 T , M i t ( d ˉ t ) } ⊥ D i t ∣ X ˉ i t , D ˉ i , t − 1 = d ˉ t − 1 , α i M , λ ˉ t M . (3) \left\{\left(X_{ij},M_{ij}(\bar{d}_{j}),\lambda_{j}^{M}\right)_{j=t+1}^{T},M_{it}(\bar{d}_{t})\right\}\perp D_{it}\mid\bar{X}_{it},\bar{D}_{i,t-1}=\bar{d}_{t-1},\alpha_{i}^{M},\bar{\lambda}_{t}^{M}. \tag*{(3)} { ( X ij , M ij ( d ˉ j ) , λ j M ) j = t + 1 T , M i t ( d ˉ t ) } ⊥ D i t ∣ X ˉ i t , D ˉ i , t − 1 = d ˉ t − 1 , α i M , λ ˉ t M . (3)
Condition (1) requires that, given the covariate history, the past treatment and mediator histories, and the unobservables of the outcome process, the current treatment be independent of the current potential outcome and of future covariates, time effects, and potential outcomes. Condition (2) imposes the same requirement on the current mediator, with the contemporaneous treatment added to the conditioning set, and thus rules out mediator–outcome confounding left unexplained by the observed history and the unit effect. Condition (3) is the analogue of (1) for the mediator process.
Because α i Y \alpha_i^Y α i Y and α i M \alpha_i^M α i M enter the conditioning sets, Assumption 4 tolerates arbitrary time-invariant confounding among the treatment, the mediator, and the outcome, as well as arbitrary dependence between the two unit effects; only the variation left after the observed history and the unit effects have been accounted for must be ignorable. This is precisely what the panel structure buys, and it is substantially weaker than the corresponding cross-sectional requirement. Because the assumption restricts the joint behavior of unobserved potential variables, its plausibility in a given application may be examined with single-world intervention graphs ([13 , 20 ] ).
The mediation model of Section 2.3 is formulated in terms of potential outcomes, whereas the data contain realized outcomes and mediators only. The following theorem translates the potential-outcome system into observed-data restrictions.
Theorem 1 (Identification). Under Assumptions 1 to 4, for every t t t and every ( d ˉ t , m ˉ t ) (\bar{d}_t,\bar{m}_t) ( d ˉ t , m ˉ t ) in the relevant conditional support,
E ( Y i t ∣ X ˉ i t , D ˉ i t = d ˉ t , M ˉ i t = m ˉ t , α i Y , λ ˉ t Y ) = E { Y i t ( d ˉ t , m ˉ t ) ∣ X ˉ i t , α i Y , λ ˉ t Y } , \mathrm{E}(Y_{it} \mid\bar{X}_{it}, \bar{D}_{it} = \bar{d}_t, \bar{M}_{it} = \bar{m}_t, \alpha_i^Y, \bar{\lambda}_t^Y) = \mathrm{E}\{Y_{it}(\bar{d}_t,\bar{m}_t) \mid\bar{X}_{it}, \alpha_i^Y, \bar{\lambda}_t^Y\}, E ( Y i t ∣ X ˉ i t , D ˉ i t = d ˉ t , M ˉ i t = m ˉ t , α i Y , λ ˉ t Y ) = E { Y i t ( d ˉ t , m ˉ t ) ∣ X ˉ i t , α i Y , λ ˉ t Y } , E ( M i t ∣ X ˉ i t , D ˉ i t = d ˉ t , α i M , λ ˉ t M ) = E { M i t ( d ˉ t ) ∣ X ˉ i t , α i M , λ ˉ t M } . \mathrm{E}(M_{it} \mid\bar{X}_{it}, \bar{D}_{it} = \bar{d}_t, \alpha_i^M, \bar{\lambda}_t^M) = \mathrm{E}\{M_{it}(\bar{d}_t) \mid\bar{X}_{it}, \alpha_i^M, \bar{\lambda}_t^M\}. E ( M i t ∣ X ˉ i t , D ˉ i t = d ˉ t , α i M , λ ˉ t M ) = E { M i t ( d ˉ t ) ∣ X ˉ i t , α i M , λ ˉ t M } .
If the mediation model for the potential outcomes also holds, the observed data satisfy
Y i t = τ Y ( D ˉ i , t − L : t , M ˉ i , t − L : t , X ˉ i , t − L : t ) ′ θ 0 + f 0 ( X ˉ i , t − L : t ) + α i Y + λ t Y + ε i t Y , E ( ε i t Y ∣ X ˉ i t , D ˉ i t , M ˉ i t , α i Y , λ ˉ t Y ) = 0 , M i t = τ M ( D ˉ i , t − L : t , X ˉ i , t − L : t ) ′ γ 0 + g 0 ( X ˉ i , t − L : t ) + α i M + λ t M + ε i t M , E ( ε i t M ∣ X ˉ i t , D ˉ i t , α i M , λ ˉ t M ) = 0. (4) \begin{aligned}
Y_{it} &= \tau_Y(\bar{D}_{i,t-L:t},\bar{M}_{i,t-L:t},\bar{X}_{i,t-L:t})'\theta_0 + f_0(\bar{X}_{i,t-L:t}) + \alpha_i^Y + \lambda_t^Y + \varepsilon_{it}^Y, \\
\mathrm{E}(\varepsilon_{it}^Y \mid\bar{X}_{it},\bar{D}_{it},\bar{M}_{it},\alpha_i^Y,\bar{\lambda}_t^Y) &= 0, \\
M_{it} &= \tau_M(\bar{D}_{i,t-L:t},\bar{X}_{i,t-L:t})'\gamma_0 + g_0(\bar{X}_{i,t-L:t}) + \alpha_i^M + \lambda_t^M + \varepsilon_{it}^M, \\
\mathrm{E}(\varepsilon_{it}^M \mid\bar{X}_{it},\bar{D}_{it},\alpha_i^M,\bar{\lambda}_t^M) &= 0. \tag*{(4)}
\end{aligned} Y i t E ( ε i t Y ∣ X ˉ i t , D ˉ i t , M ˉ i t , α i Y , λ ˉ t Y ) M i t E ( ε i t M ∣ X ˉ i t , D ˉ i t , α i M , λ ˉ t M ) = τ Y ( D ˉ i , t − L : t , M ˉ i , t − L : t , X ˉ i , t − L : t ) ′ θ 0 + f 0 ( X ˉ i , t − L : t ) + α i Y + λ t Y + ε i t Y , = 0 , = τ M ( D ˉ i , t − L : t , X ˉ i , t − L : t ) ′ γ 0 + g 0 ( X ˉ i , t − L : t ) + α i M + λ t M + ε i t M , = 0. (4)
All variables in (4) are observed and carry the same θ 0 \theta_0 θ 0 and γ 0 \gamma_0 γ 0 that govern the potential outcomes. Hence every estimand in Section 2.2 is a known function of these parameters and moments of observed variables. Were f 0 f_0 f 0 and g 0 g_0 g 0 known, the parameters could be recovered by GMM after eliminating the fixed effects. In applications the nuisance functions are unknown and possibly nonlinear and high-dimensional, so directly substituting machine-learning estimates into the moments can introduce regularization and overfitting biases of first-order relevance. The next section removes these biases using DML. To the best of our knowledge, this paper is the first one to extend the DML framework [4 ] originally developed for cross-sectional settings without mediation to causal mediation analysis in panel data with two-way fixed effects.
Estimation
Estimation algorithm for structural parameters
Following the DML principle of Chernozhukov et al. [4 ] , our objective is to estimate the low-dimensional parameter vector β 0 : = ( θ 0 ′ , γ 0 ′ ) ′ \beta_0 := (\theta_0',\gamma_0')' β 0 := ( θ 0 ′ , γ 0 ′ ) ′ by residualizing the treatment through a two-way fixed effects model and residualizing the mediator through the structural mediator equation in (4) .
For a user-specified nonnegative integer r r r , consider the treatment model
D i t = h 0 ( X ‾ i , t − r : t ) + α i D + λ t D + ε i t D , E ( ε i t D ∣ X ‾ i T , α i D , λ ‾ T D ) = 0 , (5) D_{it} = h_0(\overline{X}_{i,t-r:t}) + \alpha_i^D + \lambda_t^D + \varepsilon_{it}^D,\qquad\mathbb{E}(\varepsilon_{it}^D \mid\overline{X}_{iT},\alpha_i^D,\overline{\lambda}_T^D)=0, \tag*{(5)} D i t = h 0 ( X i , t − r : t ) + α i D + λ t D + ε i t D , E ( ε i t D ∣ X i T , α i D , λ T D ) = 0 , (5)
where h 0 h_0 h 0 is an unknown nuisance function, while α i D \alpha_i^D α i D and λ t D \lambda_t^D λ t D are the individual and period fixed effects in the treatment process. Variables dated before period 1 are set to 0. The conditional mean restriction in (5) implies that the treatment innovation satisfies E [ ε i t D φ ( X ‾ i T ) ] = 0 \mathbb{E}[\varepsilon_{it}^D\varphi(\overline{X}_{iT})]=0 E [ ε i t D φ ( X i T )] = 0 for every square-integrable measurable function φ \varphi φ . That is, the treatment innovation is orthogonal to the entire covariate trajectory.
Using the structural mediator equation itself to residualize M i t M_{it} M i t requires a slightly stronger condition than the sequential covariate restriction in (4) . Specifically, we further impose
E ( ε i t M ∣ X ‾ i T , D ‾ i t , α i M , λ ‾ t M ) = 0. (6) \mathbb{E}(\varepsilon_{it}^M \mid\overline{X}_{iT},\overline{D}_{it},\alpha_i^M,\overline{\lambda}_t^M)=0. \tag*{(6)} E ( ε i t M ∣ X i T , D i t , α i M , λ t M ) = 0. (6)
Condition (6) strengthens the mediator equation only with respect to the covariate path and does not require strict exogeneity of the treatment process. This strengthening is required to ensure the Neyman orthogonality of the proposed moment conditions.
We first take first differences to eliminate the individual fixed effects. For any scalar- or vector-valued period-indexed quantity Q i t Q_{it} Q i t , including an observed variable, a dictionary evaluated at the observed histories, or a nuisance function evaluated at its arguments, let Δ Q i t : = Q i t − Q i , t − 1 \Delta Q_{it} := Q_{it} - Q_{i,t-1} Δ Q i t := Q i t − Q i , t − 1 . Subscripts 0 and 0k indicate that the true or fold-specific estimated function is used. The same convention applies to the period effects and innovations. For t = 2 , … , T t = 2, \ldots, T t = 2 , … , T , the differenced equations are
Δ Y i t = Δ τ Y , i t ′ θ 0 + Δ f 0 , i t + Δ λ t Y + Δ ε i t Y , Δ M i t = Δ τ M , i t ′ γ 0 + Δ g 0 , i t + Δ λ t M + Δ ε i t M , Δ D i t = Δ h 0 , i t + Δ λ t D + Δ ε i t D . (7) \begin{aligned}
\Delta Y_{it} &= \Delta\tau^{\prime}_{Y,it}\theta_0 + \Delta f_{0,it} + \Delta\lambda^{Y}_{t} + \Delta\varepsilon^{Y}_{it}, \qquad\Delta M_{it} = \Delta\tau^{\prime}_{M,it}\gamma_0 + \Delta g_{0,it} + \Delta\lambda^{M}_{t} + \Delta\varepsilon^{M}_{it}, \\
\Delta D_{it} &= \Delta h_{0,it} + \Delta\lambda^{D}_{t} + \Delta\varepsilon^{D}_{it}. \tag*{(7)}
\end{aligned} Δ Y i t Δ D i t = Δ τ Y , i t ′ θ 0 + Δ f 0 , i t + Δ λ t Y + Δ ε i t Y , Δ M i t = Δ τ M , i t ′ γ 0 + Δ g 0 , i t + Δ λ t M + Δ ε i t M , = Δ h 0 , i t + Δ λ t D + Δ ε i t D . (7)
We then randomly split the N N N individuals into K ≥ 3 K \ge3 K ≥ 3 folds { F 1 , … , F K } \{\mathcal{F}_1,\ldots,\mathcal{F}_K\} { F 1 , … , F K } , with each individual assigned to exactly one fold. Define k ′ = k + 1 k' = k + 1 k ′ = k + 1 if k < K k < K k < K and k ′ = 1 k' = 1 k ′ = 1 if k = K k = K k = K .
For the score-evaluation fold F k \mathcal{F}_k F k , the fold F k ′ \mathcal{F}_{k'} F k ′ is used only to form period-specific cross-sectional means and is kept separate from both the score-evaluation observations and the nuisance-training observations. For any Q i t Q_{it} Q i t and i ∈ F k i \in\mathcal{F}_k i ∈ F k , define the combined first-difference and auxiliary-fold demeaning operator
D k Q i t : = ( Q i t − Q i , t − 1 ) − 1 ∣ F k ′ ∣ ∑ j ∈ F k ′ ( Q j t − Q j , t − 1 ) , Δ Q i t ∗ : = D k Q i t . (8) \mathcal{D}_k Q_{it} := (Q_{it} - Q_{i,t-1}) - \frac{1}{|\mathcal{F}_{k'}|}\sum_{j \in\mathcal{F}_{k'}}(Q_{jt} - Q_{j,t-1}), \qquad\Delta Q^*_{it} := \mathcal{D}_k Q_{it}. \tag*{(8)} D k Q i t := ( Q i t − Q i , t − 1 ) − ∣ F k ′ ∣ 1 j ∈ F k ′ ∑ ( Q j t − Q j , t − 1 ) , Δ Q i t ∗ := D k Q i t . (8)
The operator is applied componentwise to every relevant quantity. Applying it to all terms in (7) eliminates the period fixed effects and yields
Δ Y i t ∗ = Δ τ Y , i t ′ ∗ θ 0 + Δ f 0 , i t ∗ + Δ ε i t Y ∗ , Δ M i t ∗ = Δ τ M , i t ′ ∗ γ 0 + Δ g 0 , i t ∗ + Δ ε i t M ∗ , Δ D i t ∗ = Δ h 0 , i t ∗ + Δ ε i t D ∗ . (9) \begin{aligned}
\Delta Y^*_{it} &= \Delta\tau^{\prime*}_{Y,it}\theta_0 + \Delta f^*_{0,it} + \Delta\varepsilon^{Y*}_{it}, \qquad\Delta M^*_{it} = \Delta\tau^{\prime*}_{M,it}\gamma_0 + \Delta g^*_{0,it} + \Delta\varepsilon^{M*}_{it}, \\
\Delta D^*_{it} &= \Delta h^*_{0,it} + \Delta\varepsilon^{D*}_{it}. \tag*{(9)}
\end{aligned} Δ Y i t ∗ Δ D i t ∗ = Δ τ Y , i t ′ ∗ θ 0 + Δ f 0 , i t ∗ + Δ ε i t Y ∗ , Δ M i t ∗ = Δ τ M , i t ′ ∗ γ 0 + Δ g 0 , i t ∗ + Δ ε i t M ∗ , = Δ h 0 , i t ∗ + Δ ε i t D ∗ . (9)
For generic f f f , g g g , and h h h , define the transformed residual functions
U i t Y ( f , θ ) : = Δ Y i t ∗ − Δ τ Y , i t ′ ∗ θ − Δ f i t ∗ , U i t M ( g , γ ) : = Δ M i t ∗ − Δ τ M , i t ′ ∗ γ − Δ g i t ∗ , U^Y_{it}(f,\theta) := \Delta Y^*_{it} - \Delta\tau^{\prime*}_{Y,it}\theta- \Delta f^*_{it}, \qquad U^M_{it}(g,\gamma) := \Delta M^*_{it} - \Delta\tau^{\prime*}_{M,it}\gamma- \Delta g^*_{it}, U i t Y ( f , θ ) := Δ Y i t ∗ − Δ τ Y , i t ′ ∗ θ − Δ f i t ∗ , U i t M ( g , γ ) := Δ M i t ∗ − Δ τ M , i t ′ ∗ γ − Δ g i t ∗ ,
U i t D ( h ) : = Δ D i t ∗ − Δ h i t ∗ . U^D_{it}(h) := \Delta D^*_{it} - \Delta h^*_{it}. U i t D ( h ) := Δ D i t ∗ − Δ h i t ∗ .
The first available treatment and mediator residuals are dated period 2. Since contemporaneous transformed residuals are not used as instruments under sequential exogeneity, the first equation period for which such lagged residual instruments are available is period 3. Hence, letting T : = { 3 , … , T } \mathcal{T} := \{3,\ldots,T\} T := { 3 , … , T } , define for t ∈ T t \in\mathcal{T} t ∈ T
A i t M ( h ) : = ( U i 2 D ( h ) , … , U i , t − 1 D ( h ) ) ′ , A^M_{it}(h) := \left(U^D_{i2}(h), \ldots, U^D_{i,t-1}(h)\right)' , A i t M ( h ) := ( U i 2 D ( h ) , … , U i , t − 1 D ( h ) ) ′ ,
A i t Y ( h , g , γ ˉ ) : = ( U i 2 D ( h ) , … , U i , t − 1 D ( h ) , U i 2 M ( g , γ ˉ ) , … , U i , t − 1 M ( g , γ ˉ ) ) ′ A_{it}^{Y}(h,g,\bar{\gamma}) := \left(U_{i2}^{D}(h),\ldots,U_{i,t-1}^{D}(h),U_{i2}^{M}(g,\bar{\gamma}),\ldots,U_{i,t-1}^{M}(g,\bar{\gamma})\right)^{\prime} A i t Y ( h , g , γ ˉ ) := ( U i 2 D ( h ) , … , U i , t − 1 D ( h ) , U i 2 M ( g , γ ˉ ) , … , U i , t − 1 M ( g , γ ˉ ) ) ′
where γ ˉ \bar{\gamma} γ ˉ is a nuisance copy of γ 0 \gamma_0 γ 0 used only in the outcome instrument. It is kept distinct from the candidate value γ \gamma γ entering the mediator equation moment. Consequently, once the nuisance quantities have been estimated outside the score-evaluation fold, the outcome instrument does not vary with the final GMM candidate γ \gamma γ . The resulting score is affine in β \beta β , so the final GMM criterion remains quadratic even though the structural mediator residual enters the outcome instrument. Let W i W_i W i denote the full observed trajectory of individual i i i , and let η : = ( f , g , h , γ ˉ ) \eta:= (f,g,h,\bar{\gamma}) η := ( f , g , h , γ ˉ ) and η 0 : = ( f 0 , g 0 , h 0 , γ 0 ) \eta_0 := (f_0,g_0,h_0,\gamma_0) η 0 := ( f 0 , g 0 , h 0 , γ 0 ) . The score functions are
ψ i t Y ( W i ; η , θ ) : = A i t Y ( h , g , γ ˉ ) U i t Y ( f , θ ) , ψ i t M ( W i ; η , γ ) : = A i t M ( h ) U i t M ( g , γ ) , \psi_{it}^{Y}(W_i;\eta,\theta) := A_{it}^{Y}(h,g,\bar{\gamma})U_{it}^{Y}(f,\theta), \qquad\psi_{it}^{M}(W_i;\eta,\gamma) := A_{it}^{M}(h)U_{it}^{M}(g,\gamma), ψ i t Y ( W i ; η , θ ) := A i t Y ( h , g , γ ˉ ) U i t Y ( f , θ ) , ψ i t M ( W i ; η , γ ) := A i t M ( h ) U i t M ( g , γ ) ,
and ψ i t ( W i ; η , β ) : = ( ψ i t Y ( W i ; η , θ ) ′ , ψ i t M ( W i ; η , γ ) ′ ) ′ \psi_{it}(W_i;\eta,\beta) := \left(\psi_{it}^{Y}(W_i;\eta,\theta)^{\prime},\psi_{it}^{M}(W_i;\eta,\gamma)^{\prime}\right)^{\prime} ψ i t ( W i ; η , β ) := ( ψ i t Y ( W i ; η , θ ) ′ , ψ i t M ( W i ; η , γ ) ′ ) ′ . Because every starred quantity also depends on the independent auxiliary fold F k ′ \mathcal{F}_{k'} F k ′ , expectations involving starred quantities are taken jointly over the target individual and the observations used to form the auxiliary-fold means. At the true parameter and nuisance values, the equation residuals reduce to the transformed outcome and mediator innovations, while the instrument vectors consist of lagged transformed treatment and mediator innovations. Under (4), (5), and (6),
E [ ψ i t ( W i ; η 0 , β 0 ) ] = 0 , t ∈ T , (10) \mathbb{E}[\psi_{it}(W_i;\eta_0,\beta_0)] = 0,\qquad t\in\mathcal{T}, \tag*{(10)} E [ ψ i t ( W i ; η 0 , β 0 )] = 0 , t ∈ T , (10)
and, for every η \eta η in a neighborhood of η 0 \eta_0 η 0 ,
∂ ∂ a E [ ψ i t { W i ; η 0 + a ( η − η 0 ) , β 0 } ] ∣ a = 0 = 0. (11) \left.\frac{\partial}{\partial a}\mathbb{E}\left[\psi_{it}\{W_i;\eta_0+a(\eta-\eta_0),\beta_0\}\right]\right|_{a=0}=0. \tag*{(11)} ∂ a ∂ E [ ψ i t { W i ; η 0 + a ( η − η 0 ) , β 0 } ] a = 0 = 0. (11)
In particular, for every p < t p<t p < t , the derivative with respect to the nuisance copy satisfies
− E [ Δ γ M , i p ∗ Δ ε i t Y ∗ ] = 0. -\mathbb{E}\left[\Delta\gamma_{M,ip}^{*}\Delta\varepsilon_{it}^{Y*}\right]=0. − E [ Δ γ M , i p ∗ Δ ε i t Y ∗ ] = 0.
This follows from the sequential outcome restriction because Δ τ M , i p \Delta\tau_{M,ip} Δ τ M , i p is measurable with respect to histories dated no later than p p p , while auxiliary-fold demeaning preserves the corresponding zero covariance. The remaining derivatives vanish by the same sequential restrictions together with the full-covariate-history conditions in (5) and (6).
Replacing level instruments by lagged differenced residuals removes the period-2 moment and may reduce the number of available moments. Identification therefore requires the population Jacobian of the stacked moments to have full column rank. When necessary, the instrument vectors can be augmented by additional valid residualized transformations or interactions of lagged treatment and mediator variables.
In light of (10) and the sample-splitting construction above, we implement the moments as follows. For notational convenience, suppose that N N N is divisible by K K K .
Algorithm 1 (Double/debiased machine learning for the panel mediation model)
Randomly split the N N N individuals into K K K folds { F 1 , … , F K } \{\mathcal{F}_1,\ldots,\mathcal{F}_K\} { F 1 , … , F K } of equal size.
For each k = 1 , … , K k=1,\ldots,K k = 1 , … , K : (a) Set k ′ = k + 1 k'=k+1 k ′ = k + 1 if k < K k<K k < K and k ′ = 1 k'=1 k ′ = 1 otherwise, and let F k , k ′ c : = { 1 , … , N } \ ( F k ∪ F k ′ ) \mathcal{F}^{c}_{k,k'}:=\{1,\ldots,N\}\backslash(\mathcal{F}_k\cup\mathcal{F}_{k'}) F k , k ′ c := { 1 , … , N } \ ( F k ∪ F k ′ ) . (b) Using only individuals in F k , k ′ c \mathcal{F}^{c}_{k,k'} F k , k ′ c , construct f ^ 0 k \widehat{f}_{0k} f 0 k , g ^ 0 k \widehat{g}_{0k} g 0 k , h ^ 0 k \widehat{h}_{0k} h 0 k , and a preliminary estimator γ ~ k \widetilde{\gamma}_k γ k of γ 0 \gamma_0 γ 0 . (c) For every i ∈ F k i\in\mathcal{F}_k i ∈ F k and t = 2 , … , T t=2,\ldots,T t = 2 , … , T , compute all starred quantities entering the residuals below using F k ′ \mathcal{F}_{k'} F k ′ according to (8). This includes the transformed outcomes, treatment and mediator dictionaries, and the fitted values of all nuisance functions.
For every k k k , i ∈ F k i\in\mathcal{F}_k i ∈ F k , and t = 2 , … , T t=2,\ldots,T t = 2 , … , T , define U ^ i t , k Y ( θ ) : = Δ Y i t ∗ − Δ τ Y , i t ∗ θ − Δ f ^ 0 k , i t ∗ \widehat{U}^{Y}_{it,k}(\theta):=\Delta Y^{*}_{it}-\Delta\tau^{*}_{Y,it}\theta-\Delta\widehat{f}^{*}_{0k,it} U i t , k Y ( θ ) := Δ Y i t ∗ − Δ τ Y , i t ∗ θ − Δ f 0 k , i t ∗ , U ^ i t , k M ( γ ) : = Δ M i t ∗ − Δ τ M , i t ∗ γ − Δ g ^ 0 k , i t ∗ \widehat{U}^{M}_{it,k}(\gamma):=\Delta M^{*}_{it}-\Delta\tau^{*}_{M,it}\gamma-\Delta\widehat{g}^{*}_{0k,it} U i t , k M ( γ ) := Δ M i t ∗ − Δ τ M , i t ∗ γ − Δ g 0 k , i t ∗ , U ^ i t , k D : = Δ D i t ∗ − Δ h ^ 0 k , i t ∗ \widehat{U}^{D}_{it,k}:=\Delta D^{*}_{it}-\Delta\widehat{h}^{*}_{0k,it} U i t , k D := Δ D i t ∗ − Δ h 0 k , i t ∗ . For t ∈ T t\in\mathcal{T} t ∈ T , let A ^ i t , k M : = ( U ^ i 2 , k D , … , U ^ i , t − 1 , k D ) \widehat{A}^{M}_{it,k}:=(\widehat{U}^{D}_{i2,k},\ldots,\widehat{U}^{D}_{i,t-1,k}) A i t , k M := ( U i 2 , k D , … , U i , t − 1 , k D ) , A ^ i t , k Y : = ( U ^ i 2 , k D , … , U ^ i , t − 1 , k D , U ^ i 2 , k M ( γ ~ k ) , … , U ^ i , t − 1 , k M ( γ ~ k ) ) \widehat{A}^{Y}_{it,k}:=(\widehat{U}^{D}_{i2,k},\ldots,\widehat{U}^{D}_{i,t-1,k},\widehat{U}^{M}_{i2,k}(\widetilde{\gamma}_k),\ldots,\widehat{U}^{M}_{i,t-1,k}(\widetilde{\gamma}_k)) A i t , k Y := ( U i 2 , k D , … , U i , t − 1 , k D , U i 2 , k M ( γ k ) , … , U i , t − 1 , k M ( γ k )) . Define D ^ i , k Y : = Diag ( A ^ i 3 , k Y , … , A ^ i T , k Y ) \widehat{D}^{Y}_{i,k}:=\operatorname{Diag}(\widehat{A}^{Y}_{i3,k},\ldots,\widehat{A}^{Y}_{iT,k}) D i , k Y := Diag ( A i 3 , k Y , … , A i T , k Y ) , U ^ i , k Y ( θ ) : = ( U ^ i 3 , k Y ( θ ) , … , U ^ i T , k Y ( θ ) ) ′ \widehat{U}^{Y}_{i,k}(\theta):=(\widehat{U}^{Y}_{i3,k}(\theta),\ldots,\widehat{U}^{Y}_{iT,k}(\theta))^{\prime} U i , k Y ( θ ) := ( U i 3 , k Y ( θ ) , … , U i T , k Y ( θ ) ) ′ , A ^ i , k M : = Diag ( A ^ i 3 , k M , … , A ^ i T , k M ) \widehat{A}^{M}_{i,k}:=\operatorname{Diag}(\widehat{A}^{M}_{i3,k},\ldots,\widehat{A}^{M}_{iT,k}) A i , k M := Diag ( A i 3 , k M , … , A i T , k M ) , U ^ i , k M ( γ ) : = ( U ^ i 3 , k M ( γ ) , … , U ^ i T , k M ( γ ) ) ′ \widehat{U}^{M}_{i,k}(\gamma):=(\widehat{U}^{M}_{i3,k}(\gamma),\ldots,\widehat{U}^{M}_{iT,k}(\gamma))^{\prime} U i , k M ( γ ) := ( U i 3 , k M ( γ ) , … , U i T , k M ( γ ) ) ′ . Here and below,
Diag ( a 3 , … , a T ) \operatorname{Diag}(a_3,\ldots,a_T) Diag ( a 3 , … , a T ) denotes the block-diagonal matrix whose period-t t t block is the column vector a t a_t a t .
For β = ( θ ′ , γ ′ ) ′ \beta=(\theta',\gamma')' β = ( θ ′ , γ ′ ) ′ , define
ψ ^ i k ( β ) : = ( A ^ i , k Y U ^ i , k Y ( θ ) A ^ i , k M U ^ i , k M ( γ ) ) , \widehat{\psi}_i^k(\beta):=
\begin{pmatrix}
\widehat{A}_{i,k}^{Y}\widehat{U}_{i,k}^{Y}(\theta)\\
\widehat{A}_{i,k}^{M}\widehat{U}_{i,k}^{M}(\gamma)
\end{pmatrix}, ψ i k ( β ) := ( A i , k Y U i , k Y ( θ ) A i , k M U i , k M ( γ ) ) ,
and obtain the DML–GMM estimator from
β ^ 0 D : = arg min β ∈ R s Y + s M { 1 N ∑ k = 1 K ∑ i ∈ F k ψ ^ i k ( β ) } ′ Ω ^ { 1 N ∑ k = 1 K ∑ i ∈ F k ψ ^ i k ( β ) } , (12) \widehat{\beta}_0^{D}:=\underset{\beta\in\mathbb{R}^{s_Y+s_M}}{\operatorname{arg\,min}}\left\{\frac{1}{N}\sum_{k=1}^{K}\sum_{i\in\mathcal{F}_k}\widehat{\psi}_i^k(\beta)\right\}'\widehat{\Omega}\left\{\frac{1}{N}\sum_{k=1}^{K}\sum_{i\in\mathcal{F}_k}\widehat{\psi}_i^k(\beta)\right\}, \tag*{(12)} β 0 D := β ∈ R s Y + s M arg min { N 1 k = 1 ∑ K i ∈ F k ∑ ψ i k ( β ) } ′ Ω { N 1 k = 1 ∑ K i ∈ F k ∑ ψ i k ( β ) } , (12)
where Ω ^ \widehat{\Omega} Ω is positive definite and held fixed during minimization.
The preliminary coefficient γ ~ k \widetilde{\gamma}_k γ k appears only in the outcome instrument; the reported estimator of γ 0 \gamma_0 γ 0 is the γ \gamma γ component of β ^ 0 D \widehat{\beta}_0^{D} β 0 D . Under merely sequential exogeneity, the nuisance functions and γ ~ k \widetilde{\gamma}_k γ k may be learned by regularized IV or GMM methods using valid lagged instruments.
Taking Ω ^ \widehat{\Omega} Ω to be the identity matrix gives a one-step estimator. A two-step estimator instead uses the inverse of an estimator of the covariance matrix of the first-step moments. Although the outcome moments do not contain the final GMM candidate γ \gamma γ , jointly stacking the outcome and mediator equations and estimating their full moment covariance retains the cross-equation dependence needed for inference on natural direct and indirect effects. Identification requires the population Jacobian of the stacked moments to have full column rank.
Estimators of causal estimands
The structural form of the mediation model allows us to construct counterfactual mediators and outcomes without estimating the individual or period fixed effects. For any treatment history d ‾ t \overline{d}_t d t , define the estimated counterfactual mediator for individual i i i in period t by
M ^ i t ( d ˉ t ) : = M i t + ( τ M ( d ˉ t − L : t , X ‾ i , t − L : t ) − τ M ( D ‾ i , t − L : t , X ‾ i , t − L : t ) ) ′ γ ^ 0 D , (13) \widehat{M}_{it}(\bar{d}_t) := M_{it} + \left(\tau_M(\bar{d}_{t-L:t},\overline{X}_{i,t-L:t}) - \tau_M(\overline{D}_{i,t-L:t},\overline{X}_{i,t-L:t})\right)^\prime\widehat{\gamma}^{D}_{0}, \tag*{(13)} M i t ( d ˉ t ) := M i t + ( τ M ( d ˉ t − L : t , X i , t − L : t ) − τ M ( D i , t − L : t , X i , t − L : t ) ) ′ γ 0 D , (13)
and let M ^ i t ( d ˉ t ) : = ( M ^ i 1 ( d 1 ) , … , M ^ i t ( d ˉ t ) ) ′ \widehat{M}_{it}(\bar{d}_t) := (\widehat{M}_{i1}(d_1),\ldots,\widehat{M}_{it}(\bar{d}_t))^\prime M i t ( d ˉ t ) := ( M i 1 ( d 1 ) , … , M i t ( d ˉ t ) ) ′ . Likewise, for a prespecified mediator history m ˉ t \bar{m}_t m ˉ t , define
Y ^ i t ( d ˉ t , m ˉ t ) : = Y i t + ( τ Y ( d ˉ t − L : t , m ˉ t − L : t , X ‾ i , t − L : t ) − τ Y ( D ‾ i , t − L : t , M ‾ i , t − L : t , X ‾ i , t − L : t ) ) ′ θ ^ 0 D . (14) \widehat{Y}_{it}(\bar{d}_t,\bar{m}_t) := Y_{it} + \left(\tau_Y(\bar{d}_{t-L:t},\bar{m}_{t-L:t},\overline{X}_{i,t-L:t}) - \tau_Y(\overline{D}_{i,t-L:t},\overline{M}_{i,t-L:t},\overline{X}_{i,t-L:t})\right)^\prime\widehat{\theta}^{D}_{0}. \tag*{(14)} Y i t ( d ˉ t , m ˉ t ) := Y i t + ( τ Y ( d ˉ t − L : t , m ˉ t − L : t , X i , t − L : t ) − τ Y ( D i , t − L : t , M i , t − L : t , X i , t − L : t ) ) ′ θ 0 D . (14)
The nested counterfactual outcome Y ^ i t { a ˉ t , M ^ i t ( b ˉ t ) } \widehat{Y}_{it}\{\bar{a}_t,\widehat{M}_{it}(\bar{b}_t)\} Y i t { a ˉ t , M i t ( b ˉ t )} is obtained by replacing d ˉ t \bar{d}_t d ˉ t in (14) with a ˉ t \bar{a}_t a ˉ t and replacing m ˉ t \bar{m}_t m ˉ t with M ^ i t ( b ˉ t ) \widehat{M}_{it}(\bar{b}_t) M i t ( b ˉ t ) . The nuisance functions and the fixed effects cancel from (13) and (14); therefore, only the DML–GMM estimators of θ 0 \theta_0 θ 0 and γ 0 \gamma_0 γ 0 are required for these causal contrasts.
The plug-in estimators of the history-specific causal effects are
C D E ^ t ( d ˉ t , d ˉ t ∗ ; m ˉ t ) : = 1 N ∑ i = 1 N { Y ^ i t ( d ˉ t , m ˉ t ) − Y ^ i t ( d ˉ t ∗ , m ˉ t ) } , \widehat{\mathrm{CDE}}_t(\bar{d}_t,\bar{d}_t^*;\bar{m}_t) := \frac{1}{N}\sum_{i=1}^{N}\left\{\widehat{Y}_{it}(\bar{d}_t,\bar{m}_t)-\widehat{Y}_{it}(\bar{d}_t^*,\bar{m}_t)\right\}, CDE t ( d ˉ t , d ˉ t ∗ ; m ˉ t ) := N 1 i = 1 ∑ N { Y i t ( d ˉ t , m ˉ t ) − Y i t ( d ˉ t ∗ , m ˉ t ) } ,
N D E ^ t ( d ˉ t , d ˉ t ∗ ) : = 1 N ∑ i = 1 N { Y ^ i t { d ˉ t , M ^ i t ( d ˉ t ∗ ) } − Y ^ i t { d ˉ t ∗ , M ^ i t ( d ˉ t ∗ ) } } , \widehat{\mathrm{NDE}}_t(\bar{d}_t,\bar{d}_t^*) := \frac{1}{N}\sum_{i=1}^{N}\left\{\widehat{Y}_{it}\{\bar{d}_t,\widehat{M}_{it}(\bar{d}_t^*)\}-\widehat{Y}_{it}\{\bar{d}_t^*,\widehat{M}_{it}(\bar{d}_t^*)\}\right\}, NDE t ( d ˉ t , d ˉ t ∗ ) := N 1 i = 1 ∑ N { Y i t { d ˉ t , M i t ( d ˉ t ∗ )} − Y i t { d ˉ t ∗ , M i t ( d ˉ t ∗ )} } ,
N I E ^ t ( d ˉ t , d ˉ t ∗ ) : = 1 N ∑ i = 1 N { Y ^ i t { d ˉ t , M ^ i t ( d ˉ t ) } − Y ^ i t { d ˉ t , M ^ i t ( d ˉ t ∗ ) } } , \widehat{\mathrm{NIE}}_t(\bar{d}_t,\bar{d}_t^*) := \frac{1}{N}\sum_{i=1}^{N}\left\{\widehat{Y}_{it}\{\bar{d}_t,\widehat{M}_{it}(\bar{d}_t)\}-\widehat{Y}_{it}\{\bar{d}_t,\widehat{M}_{it}(\bar{d}_t^*)\}\right\}, NIE t ( d ˉ t , d ˉ t ∗ ) := N 1 i = 1 ∑ N { Y i t { d ˉ t , M i t ( d ˉ t )} − Y i t { d ˉ t , M i t ( d ˉ t ∗ )} } ,
T E ^ t ( d ˉ t , d ˉ t ∗ ) : = N D E ^ t ( d ˉ t , d ˉ t ∗ ) + N I E ^ t ( d ˉ t , d ˉ t ∗ ) . \widehat{\mathrm{TE}}_t(\bar{d}_t,\bar{d}_t^*) := \widehat{\mathrm{NDE}}_t(\bar{d}_t,\bar{d}_t^*)+\widehat{\mathrm{NIE}}_t(\bar{d}_t,\bar{d}_t^*). TE t ( d ˉ t , d ˉ t ∗ ) := NDE t ( d ˉ t , d ˉ t ∗ ) + NIE t ( d ˉ t , d ˉ t ∗ ) .
When the treatment and mediator are continuous and the dictionaries are differentiable, the derivative effects can be estimated analogously. Specifically,
C D D ^ t , j ( d ˉ t , m ˉ t ) : = 1 N ∑ i = 1 N ∂ ∂ d j Y ^ i t ( d ˉ t , m ˉ t ) , N D D ^ t , j ( d ˉ t ) : = 1 N ∑ i = 1 N ∂ ∂ a j Y ^ i t { a ˉ t , M ^ i t ( b ˉ t ) } ∣ a ˉ t = b ˉ t = d ˉ t , \widehat{\mathrm{CDD}}_{t,j}(\bar{d}_t,\bar{m}_t) := \frac{1}{N}\sum_{i=1}^{N}\frac{\partial}{\partial d_j}\widehat{Y}_{it}(\bar{d}_t,\bar{m}_t),\qquad
\widehat{\mathrm{NDD}}_{t,j}(\bar{d}_t) := \left.\frac{1}{N}\sum_{i=1}^{N}\frac{\partial}{\partial a_j}\widehat{Y}_{it}\{\bar{a}_t,\widehat{M}_{it}(\bar{b}_t)\}\right|_{\bar{a}_t=\bar{b}_t=\bar{d}_t}, CDD t , j ( d ˉ t , m ˉ t ) := N 1 i = 1 ∑ N ∂ d j ∂ Y i t ( d ˉ t , m ˉ t ) , NDD t , j ( d ˉ t ) := N 1 i = 1 ∑ N ∂ a j ∂ Y i t { a ˉ t , M i t ( b ˉ t )} a ˉ t = b ˉ t = d ˉ t ,
N I D ^ t , j ( d ˉ t ) : = 1 N ∑ i = 1 N ∂ ∂ b j Y ^ i t { a ˉ t , M ^ i t ( b ˉ t ) } ∣ a ˉ t = b ˉ t = d ˉ t , T D ^ t , j ( d ˉ t ) : = N D D ^ t , j ( d ˉ t ) + N I D ^ t , j ( d ˉ t ) . \widehat{\mathrm{NID}}_{t,j}(\bar{d}_t) := \left.\frac{1}{N}\sum_{i=1}^{N}\frac{\partial}{\partial b_j}\widehat{Y}_{it}\{\bar{a}_t,\widehat{M}_{it}(\bar{b}_t)\}\right|_{\bar{a}_t=\bar{b}_t=\bar{d}_t},\qquad
\widehat{\mathrm{TD}}_{t,j}(\bar{d}_t) := \widehat{\mathrm{NDD}}_{t,j}(\bar{d}_t)+\widehat{\mathrm{NID}}_{t,j}(\bar{d}_t). NID t , j ( d ˉ t ) := N 1 i = 1 ∑ N ∂ b j ∂ Y i t { a ˉ t , M i t ( b ˉ t )} a ˉ t = b ˉ t = d ˉ t , TD t , j ( d ˉ t ) := NDD t , j ( d ˉ t ) + NID t , j ( d ˉ t ) .
The derivative in N I D ^ t , j \widehat{\mathrm{NID}}_{t,j} NID t , j is evaluated by the chain rule and therefore incorporates the derivative of (13) with respect to b j b_j b j .
For a smooth causal estimand, inference can be conducted by combining the influence function of β ^ 0 D \widehat{\beta}^{D}_{0} β 0 D with the empirical variation of the individual plug-in contributions and then applying the multivariate delta method. A convenient alternative, particularly for nonlinear dictionaries and natural indirect effects, is a cross-sectional bootstrap that resamples individuals and repeats the complete nuisance-estimation and DML–GMM procedure in each bootstrap sample.
Asymptotic theory
The asymptotic argument proceeds in two stages. We first establish an asymptotic linear representation and root-N N N asymptotic normality for the joint DML–GMM estimator β ^ 0 D = ( θ ^ 0 D ′ , γ ^ 0 D ′ ) ′ \widehat{\beta}_0^D=(\widehat{\theta}_0^{D\prime},\widehat{\gamma}_0^{D\prime})^\prime β 0 D = ( θ 0 D ′ , γ 0 D ′ ) ′ of the structural coefficients. We then translate this coefficient-level result into asymptotic theory for the plug-in estimators of the causal effects.
Because the coefficient-level analysis is technically involved, its complete conditions, auxiliary results, asymptotic normality theorem, and sandwich variance theory are deferred to Appendix § 10 . We retain in the main text only the sampling framework and the structural-parameter linear representation needed to carry out the second stage. We assume that
{ D ˉ i T , X ˉ i T , α i Y , α i M , ε ˉ i T Y , ε ˉ i T M } i = 1 N are independent and identically distributed (i.i.d.). (15) \left\{\bar{D}_{iT},\bar{X}_{iT},\alpha_i^Y,\alpha_i^M,\bar{\varepsilon}_{iT}^Y,\bar{\varepsilon}_{iT}^M\right\}_{i=1}^{N}\ \text{are independent and identically distributed (i.i.d.).} \tag*{(15)} { D ˉ i T , X ˉ i T , α i Y , α i M , ε ˉ i T Y , ε ˉ i T M } i = 1 N are independent and identically distributed (i.i.d.). (15)
This assumption is imposed only across units. Within a given unit, the treatment, mediator, covariate, and innovation sequences may be arbitrarily dependent over time, and the unit fixed effects may be correlated with each other and with the observed histories. Throughout this section, T ≥ 3 T \ge3 T ≥ 3 , K K K , L L L , r r r , s Y s_Y s Y , and s M s_M s M are fixed, N → ∞ N \to\infty N → ∞ , and ∣ F k ∣ / N → 1 / K |\mathcal{F}_k|/N \to1/K ∣ F k ∣/ N → 1/ K for every k k k .
The structural-parameter theory in Appendix § 10 is developed under the observed-data moment restrictions in (4) –(6) . At a high level, it requires finite moments and foldwise mean-square consistency of the nuisance estimators, a second-order product-rate restriction on the equation-regression and instrument-construction errors, and stability and full column rank of the population Jacobian. The relevant products of nuisance errors must be o p ( N − 1 / 2 ) o_p(N^{-1/2}) o p ( N − 1/2 ) ; o p ( N − 1 / 4 ) o_p(N^{-1/4}) o p ( N − 1/4 ) rates for all nuisance components are sufficient but not necessary.
The appendix also shows that the sample means introduced by auxiliary-fold demeaning are negligible at the first-order scale.
Let F 0 F_0 F 0 denote the distribution of the individual trajectory W i W_i W i , let ψ ~ i \widetilde{\psi}_i ψ i denote the oracle stacked score formed from the lagged differenced treatment and mediator innovations and the corresponding outcome and mediator innovations, and let G G G be the population Jacobian of the stacked moments. If Ω ^ ⟶ p Ω \widehat{\Omega} \overset{p}{\longrightarrow} \Omega Ω ⟶ p Ω , define
A 0 : = ( G ′ Ω G ) − 1 G ′ Ω , φ β , i : = − A 0 ψ ~ i . A_0 := (G^{\prime}\Omega G)^{-1}G^{\prime}\Omega,\qquad\varphi_{\beta,i}:=-A_0\widetilde{\psi}_i. A 0 := ( G ′ Ω G ) − 1 G ′ Ω , φ β , i := − A 0 ψ i .
Under the conditions stated formally in Appendix C,
N ( β ^ 0 D − β 0 ) = 1 N ∑ i = 1 N φ β , i + o p ( 1 ) ⟶ d N ( 0 , V β ) , V β : = E ( φ β , i φ β , i ′ ) . (16) \sqrt{N}(\widehat{\beta}^{D}_0-\beta_0)=\frac{1}{\sqrt{N}}\sum_{i=1}^{N}\varphi_{\beta,i}+o_p(1)\overset{d}{\longrightarrow}N(0,V_\beta),\qquad V_\beta:=\mathbb{E}(\varphi_{\beta,i}\varphi_{\beta,i}^{\prime}). \tag*{(16)} N ( β 0 D − β 0 ) = N 1 i = 1 ∑ N φ β , i + o p ( 1 ) ⟶ d N ( 0 , V β ) , V β := E ( φ β , i φ β , i ′ ) . (16)
The same appendix establishes consistency of the stacked sandwich estimator of V β V_\beta V β . (16) is the structural-parameter input used throughout the remainder of this section.
We now carry out the second stage. The following unit-level contributions connect the plug-in estimators to the causal targets, while Assumption 5 supplies the smoothness and moment conditions needed to propagate the structural-parameter representation in (16) through these maps.
For a generic value β = ( θ ′ , γ ′ ) ′ \beta=(\theta^{\prime},\gamma^{\prime})^{\prime} β = ( θ ′ , γ ′ ) ′ , define
M i t β ( d ‾ t ) : = M i t + { τ M ( d ‾ t − L : t , X ‾ i , t − L : t ) − τ M ( D ‾ i , t − L : t , X ‾ i , t − L : t ) } ′ γ , (17) M^{\beta}_{it}(\overline{d}_t):=M_{it}+\left\{\tau_M(\overline{d}_{t-L:t},\overline{X}_{i,t-L:t})-\tau_M(\overline{D}_{i,t-L:t},\overline{X}_{i,t-L:t})\right\}^{\prime}\gamma, \tag*{(17)} M i t β ( d t ) := M i t + { τ M ( d t − L : t , X i , t − L : t ) − τ M ( D i , t − L : t , X i , t − L : t ) } ′ γ , (17)
Y i t β ( d ‾ t , m ‾ t ) : = Y i t + { τ Y ( d ‾ t − L : t , m ‾ t − L : t , X ‾ i , t − L : t ) − τ Y ( D ‾ i , t − L : t , M ‾ i , t − L : t , X ‾ i , t − L : t ) } ′ θ . Y^{\beta}_{it}(\overline{d}_t,\overline{m}_t):=Y_{it}+\left\{\tau_Y(\overline{d}_{t-L:t},\overline{m}_{t-L:t},\overline{X}_{i,t-L:t})-\tau_Y(\overline{D}_{i,t-L:t},\overline{M}_{i,t-L:t},\overline{X}_{i,t-L:t})\right\}^{\prime}\theta. Y i t β ( d t , m t ) := Y i t + { τ Y ( d t − L : t , m t − L : t , X i , t − L : t ) − τ Y ( D i , t − L : t , M i , t − L : t , X i , t − L : t ) } ′ θ .
Let M ‾ i t β ( d ‾ t ) : = { M i t β ( d 1 ) , … , M i t β ( d ‾ t ) } \overline{M}^{\beta}_{it}(\overline{d}_t):=\{M^{\beta}_{it}(d_1),\ldots,M^{\beta}_{it}(\overline{d}_t)\} M i t β ( d t ) := { M i t β ( d 1 ) , … , M i t β ( d t )} . Under the potential-outcome mediation model and consistency, M i t β 0 ( d ‾ t ) = M i t ( d ‾ t ) M^{\beta_0}_{it}(\overline{d}_t)=M_{it}(\overline{d}_t) M i t β 0 ( d t ) = M i t ( d t ) , Y i t β 0 ( d ‾ t , m ‾ t ) = Y i t ( d ‾ t , m ‾ t ) Y^{\beta_0}_{it}(\overline{d}_t,\overline{m}_t)=Y_{it}(\overline{d}_t,\overline{m}_t) Y i t β 0 ( d t , m t ) = Y i t ( d t , m t ) . Accordingly, define the unit-level contributions to the level effects by
ℓ i , t C D E ( β ) : = Y i t β ( d ‾ t , m ‾ t ) − Y i t β ( d ‾ t ∗ , m ‾ t ) , ℓ i , t N D E ( β ) : = Y i t β { d ‾ t , M ‾ i t β ( d ‾ t ∗ ) } − Y i t β { d ‾ t ∗ , M ‾ i t β ( d ‾ t ∗ ) } , \ell^{\mathrm{CDE}}_{i,t}(\beta):=Y^{\beta}_{it}(\overline{d}_t,\overline{m}_t)-Y^{\beta}_{it}(\overline{d}^{*}_t,\overline{m}_t),\qquad\ell^{\mathrm{NDE}}_{i,t}(\beta):=Y^{\beta}_{it}\{\overline{d}_t,\overline{M}^{\beta}_{it}(\overline{d}^{*}_t)\}-Y^{\beta}_{it}\{\overline{d}^{*}_t,\overline{M}^{\beta}_{it}(\overline{d}^{*}_t)\}, ℓ i , t CDE ( β ) := Y i t β ( d t , m t ) − Y i t β ( d t ∗ , m t ) , ℓ i , t NDE ( β ) := Y i t β { d t , M i t β ( d t ∗ )} − Y i t β { d t ∗ , M i t β ( d t ∗ )} ,
ℓ i , t N I E ( β ) : = Y i t β { d ˉ t , M ‾ i t β ( d ˉ t ) } − Y i t β { d ˉ t , M ‾ i t β ( d ˉ t ∗ ) } , ℓ i , t T E ( β ) : = Y i t β { d ˉ t , M ‾ i t β ( d ˉ t ) } − Y i t β { d ˉ t ∗ , M ‾ i t β ( d ˉ t ∗ ) } . \ell_{i,t}^{\mathrm{NIE}}(\beta) := Y_{it}^{\beta}\{\bar d_t,\overline{M}_{it}^{\beta}(\bar d_t)\}-Y_{it}^{\beta}\{\bar d_t,\overline{M}_{it}^{\beta}(\bar d_t^{*})\},\qquad\ell_{i,t}^{\mathrm{TE}}(\beta) := Y_{it}^{\beta}\{\bar d_t,\overline{M}_{it}^{\beta}(\bar d_t)\}-Y_{it}^{\beta}\{\bar d_t^{*},\overline{M}_{it}^{\beta}(\bar d_t^{*})\}. ℓ i , t NIE ( β ) := Y i t β { d ˉ t , M i t β ( d ˉ t )} − Y i t β { d ˉ t , M i t β ( d ˉ t ∗ )} , ℓ i , t TE ( β ) := Y i t β { d ˉ t , M i t β ( d ˉ t )} − Y i t β { d ˉ t ∗ , M i t β ( d ˉ t ∗ )} .
Their expectations at β 0 \beta_0 β 0 equal the corresponding causal effects in § 2.2 , and ℓ i , t T E ( β ) = ℓ i , t N D E ( β ) + ℓ i , t N I E ( β ) \ell_{i,t}^{\mathrm{TE}}(\beta)=\ell_{i,t}^{\mathrm{NDE}}(\beta)+\ell_{i,t}^{\mathrm{NIE}}(\beta) ℓ i , t TE ( β ) = ℓ i , t NDE ( β ) + ℓ i , t NIE ( β ) for every i i i and β \beta β .
For continuous treatments and mediators, define analogously
ℓ i , t , j C D D ( β ) : = ∂ ∂ d j Y i t β ( d ˉ t , m ˉ t ) , ℓ i , t , j N D D ( β ) : = ∂ ∂ a j Y i t β { a ˉ t , M ‾ i t β ( b ˉ t ) } ∣ a ˉ t = b ˉ t = d ˉ t , \ell_{i,t,j}^{\mathrm{CDD}}(\beta):=\left.\frac{\partial}{\partial d_j}Y_{it}^{\beta}(\bar d_t,\bar m_t)\right.,\qquad\ell_{i,t,j}^{\mathrm{NDD}}(\beta):=\left.\frac{\partial}{\partial a_j}Y_{it}^{\beta}\{\bar a_t,\overline{M}_{it}^{\beta}(\bar b_t)\}\right|_{\bar a_t=\bar b_t=\bar d_t}, ℓ i , t , j CDD ( β ) := ∂ d j ∂ Y i t β ( d ˉ t , m ˉ t ) , ℓ i , t , j NDD ( β ) := ∂ a j ∂ Y i t β { a ˉ t , M i t β ( b ˉ t )} a ˉ t = b ˉ t = d ˉ t ,
ℓ i , t , j N I D ( β ) : = ∂ ∂ b j Y i t β { a ˉ t , M ‾ i t β ( b ˉ t ) } ∣ a ˉ t = b ˉ t = d ˉ t , ℓ i , t , j T D ( β ) : = ℓ i , t , j N D D ( β ) + ℓ i , t , j N I D ( β ) . \ell_{i,t,j}^{\mathrm{NID}}(\beta):=\left.\frac{\partial}{\partial b_j}Y_{it}^{\beta}\{\bar a_t,\overline{M}_{it}^{\beta}(\bar b_t)\}\right|_{\bar a_t=\bar b_t=\bar d_t},\qquad\ell_{i,t,j}^{\mathrm{TD}}(\beta):=\ell_{i,t,j}^{\mathrm{NDD}}(\beta)+\ell_{i,t,j}^{\mathrm{NID}}(\beta). ℓ i , t , j NID ( β ) := ∂ b j ∂ Y i t β { a ˉ t , M i t β ( b ˉ t )} a ˉ t = b ˉ t = d ˉ t , ℓ i , t , j TD ( β ) := ℓ i , t , j NDD ( β ) + ℓ i , t , j NID ( β ) .
The derivative in ℓ i , t , j N I D ( β ) \ell_{i,t,j}^{\mathrm{NID}}(\beta) ℓ i , t , j NID ( β ) is a total derivative and therefore differentiates through the counterfactual mediator map in (17) .
Let ℓ ( W i ; β ) ∈ R p \ell(W_i;\beta)\in\mathbb{R}^{p} ℓ ( W i ; β ) ∈ R p stack any fixed finite collection of the preceding contributions and define
ϑ 0 : = E { ℓ ( W i ; β 0 ) } , ϑ ^ : = P N ℓ ( W i ; β ^ 0 D ) , P N a i : = 1 N ∑ i = 1 N a i . (18) \vartheta_0:=\mathbb{E}\{\ell(W_i;\beta_0)\},\qquad\widehat{\vartheta}:=\mathbb{P}_N\ell(W_i;\widehat{\beta}_0^D),\qquad\mathbb{P}_N a_i:=\frac{1}{N}\sum_{i=1}^{N}a_i. \tag*{(18)} ϑ 0 := E { ℓ ( W i ; β 0 )} , ϑ := P N ℓ ( W i ; β 0 D ) , P N a i := N 1 i = 1 ∑ N a i . (18)
Thus, each component of ϑ 0 \vartheta_0 ϑ 0 is a causal estimand in § 2.2 , and each component of ϑ ^ \widehat{\vartheta} ϑ is its estimator in § 3.2 . Write ℓ ˙ β ( w ; β ) : = ∂ ℓ ( w ; β ) ∂ β ′ \dot{\ell}_{\beta}(w;\beta):=\frac{\partial\ell(w;\beta)}{\partial\beta^{\prime}} ℓ ˙ β ( w ; β ) := ∂ β ′ ∂ ℓ ( w ; β ) , so that ℓ ˙ β ( w ; β ) \dot{\ell}_{\beta}(w;\beta) ℓ ˙ β ( w ; β ) is a p × ( s Y + s M ) p\times(s_Y+s_M) p × ( s Y + s M ) Jacobian.
Assumption 5 (Regularity of the causal-effect maps) There exists a compact and convex set B \mathcal{B} B such that β 0 ∈ int ( B ) \beta_0\in\operatorname{int}(\mathcal{B}) β 0 ∈ int ( B ) and the following conditions hold:
(i) For every β ∈ B \beta\in\mathcal{B} β ∈ B , the maps w ↦ ℓ ( w ; β ) w\mapsto\ell(w;\beta) w ↦ ℓ ( w ; β ) and w ↦ ℓ ˙ β ( w ; β ) w\mapsto\dot{\ell}_{\beta}(w;\beta) w ↦ ℓ ˙ β ( w ; β ) are measurable. For F 0 F_0 F 0 -almost every w w w , the map β ↦ ℓ ( w ; β ) \beta\mapsto\ell(w;\beta) β ↦ ℓ ( w ; β ) is continuously differentiable on B \mathcal{B} B .
(ii) E ∥ ℓ ( W i ; β 0 ) ∥ 2 + E sup β ∈ B ∥ ℓ ˙ β ( W i ; β ) ∥ F 2 < ∞ \mathbb{E}\|\ell(W_i;\beta_0)\|^2+\mathbb{E}\sup_{\beta\in\mathcal{B}}\|\dot{\ell}_{\beta}(W_i;\beta)\|_{\mathsf{F}}^2<\infty E ∥ ℓ ( W i ; β 0 ) ∥ 2 + E sup β ∈ B ∥ ℓ ˙ β ( W i ; β ) ∥ F 2 < ∞ .
(iii) For every derivative effect included in ϑ 0 \vartheta_0 ϑ 0 , the treatment- and mediator-history derivatives entering both ℓ ( W i ; β ) \ell(W_i;\beta) ℓ ( W i ; β ) and ℓ ˙ β ( W i ; β ) \dot{\ell}_{\beta}(W_i;\beta) ℓ ˙ β ( W i ; β ) exist in a neighborhood of the histories at which they are evaluated and admit integrable envelopes, uniformly over β ∈ B \beta\in\mathcal{B} β ∈ B . In
particular, differentiation with respect to the treatment and mediator histories may be interchanged with expectation.
Assumption 5 controls the fixed-dimensional map that transforms a unit trajectory and the structural parameter into a causal contrast. Parts (i)–(ii) provide the uniform first-order expansion needed when β 0 \beta_0 β 0 is replaced by β ^ 0 D \widehat{\beta}_0^D β 0 D and ensure that the resulting influence function has a finite variance; no second derivative of the causal-effect map is required. Part (iii) is needed only for derivative estimands and justifies representing a derivative of a population response surface by the expectation of the corresponding unit-level derivative. For commonly used smooth dictionaries, these requirements reduce to moment conditions on the relevant dictionary terms and their derivatives.
Define J ϑ : = E { ℓ ˙ β ( W i ; β 0 ) } J_{\vartheta}:=\mathrm{E}\{\dot{\ell}_{\beta}(W_i;\beta_0)\} J ϑ := E { ℓ ˙ β ( W i ; β 0 )} . By (16), φ β , i = − A 0 ψ ~ i \varphi_{\beta,i}=-A_0\widetilde{\psi}_i φ β , i = − A 0 ψ i is the influence function of β ^ 0 D \widehat{\beta}_0^D β 0 D . For natural effects, J ϑ J_{\vartheta} J ϑ is a total derivative with respect to both parameter blocks and therefore differentiates through M ‾ i t ( ⋅ ) \overline{M}_{it}(\cdot) M i t ( ⋅ ) .
Theorem 2. Suppose that the potential-outcome mediation model and Assumption 3 hold. Suppose also that the structural-parameter conditions stated in Appendix C are satisfied, so that (16) holds, and that Assumption 5 is satisfied. Then
N ( ϑ ^ − ϑ 0 ) = 1 N ∑ i = 1 N φ ϑ , i + o p ( 1 ) → d N ( 0 , Σ ϑ ) , (19) \sqrt{N}(\widehat{\vartheta}-\vartheta_0)=\frac{1}{\sqrt{N}}\sum_{i=1}^{N}\varphi_{\vartheta,i}+o_p(1)\xrightarrow{d}N(0,\Sigma_{\vartheta}), \tag*{(19)} N ( ϑ − ϑ 0 ) = N 1 i = 1 ∑ N φ ϑ , i + o p ( 1 ) d N ( 0 , Σ ϑ ) , (19) where
φ ϑ , i : = ℓ ( W i ; β 0 ) − ϑ 0 + J ϑ φ β , i = ℓ ( W i ; β 0 ) − ϑ 0 − J ϑ A 0 ψ ~ i , Σ ϑ : = E ( φ ϑ , i φ ϑ , i ′ ) . (20) \varphi_{\vartheta,i}:=\ell(W_i;\beta_0)-\vartheta_0+J_{\vartheta}\varphi_{\beta,i}=\ell(W_i;\beta_0)-\vartheta_0-J_{\vartheta}A_0\widetilde{\psi}_i,\qquad\Sigma_{\vartheta}:=\mathrm{E}(\varphi_{\vartheta,i}\varphi_{\vartheta,i}^{\prime}). \tag*{(20)} φ ϑ , i := ℓ ( W i ; β 0 ) − ϑ 0 + J ϑ φ β , i = ℓ ( W i ; β 0 ) − ϑ 0 − J ϑ A 0 ψ i , Σ ϑ := E ( φ ϑ , i φ ϑ , i ′ ) . (20) The conclusion holds jointly for any fixed finite collection of causal effects. The covariance matrix Σ ϑ \Sigma_{\vartheta} Σ ϑ is allowed to be singular, as occurs when effects linked by an exact decomposition are stacked simultaneously.
The first term in (20) captures sampling variation in the empirical average of the individual counterfactual contrasts, while J ϑ φ β , i J_{\vartheta}\varphi_{\beta,i} J ϑ φ β , i propagates estimation error in θ ^ 0 D \widehat{\theta}_0^D θ 0 D and γ ^ 0 D \widehat{\gamma}_0^D γ 0 D . Their covariance is retained in Σ ϑ \Sigma_{\vartheta} Σ ϑ , which is particularly important for natural effects because the generated counterfactual mediator depends on the estimated mediator parameter.
For feasible analytical inference, let ψ ^ i : = ψ ^ i k ( β ^ 0 D ) \widehat{\psi}_i := \widehat{\psi}^{k}_i(\widehat{\beta}^{D}_0) ψ i := ψ i k ( β 0 D ) for i ∈ F k i \in\mathcal{F}_k i ∈ F k and define the sample Jacobian
G ^ : = 1 N ∑ k = 1 K ∑ i ∈ F k ∂ ψ ^ i k ( β ^ 0 D ) ∂ β ′ . \widehat{G} := \frac{1}{N}\sum_{k=1}^{K}\sum_{i \in\mathcal{F}_k} \frac{\partial\widehat{\psi}^{k}_i(\widehat{\beta}^{D}_0)}{\partial\beta^\prime}. G := N 1 k = 1 ∑ K i ∈ F k ∑ ∂ β ′ ∂ ψ i k ( β 0 D ) .
Then define
A ^ : = ( G ^ ′ Ω ^ G ^ ) − 1 G ^ ′ Ω ^ , J ^ ϑ : = P N ℓ ˙ β ( W i ; β ^ 0 D ) , ψ ^ ‾ : = P N ψ ^ i , φ ^ ϑ , i : = ℓ ( W i ; β ^ 0 D ) − ϑ ^ − J ^ ϑ A ^ ( ψ ^ i − ψ ^ ‾ ) , Σ ^ ϑ : = P N φ ^ ϑ , i φ ^ ϑ , i ′ . (21) \begin{aligned}
\widehat{A} &:= (\widehat{G}^{\prime}\widehat{\Omega}\widehat{G})^{-1}\widehat{G}^{\prime}\widehat{\Omega}, \qquad\widehat{J}_{\vartheta} := \mathbb{P}_N \dot{\ell}_{\beta}(W_i;\widehat{\beta}^{D}_0),\\
\overline{\widehat{\psi}} &:= \mathbb{P}_N\widehat{\psi}_i,\qquad\widehat{\varphi}_{\vartheta,i} := \ell(W_i;\widehat{\beta}^{D}_0)-\widehat{\vartheta}-\widehat{J}_{\vartheta}\widehat{A}(\widehat{\psi}_i-\overline{\widehat{\psi}}),\\
\widehat{\Sigma}_{\vartheta} &:= \mathbb{P}_N\widehat{\varphi}_{\vartheta,i}\widehat{\varphi}_{\vartheta,i}^{\prime}. \tag*{(21)}
\end{aligned} A ψ Σ ϑ := ( G ′ Ω G ) − 1 G ′ Ω , J ϑ := P N ℓ ˙ β ( W i ; β 0 D ) , := P N ψ i , φ ϑ , i := ℓ ( W i ; β 0 D ) − ϑ − J ϑ A ( ψ i − ψ ) , := P N φ ϑ , i φ ϑ , i ′ . (21)
Centering the estimated score ensures that P N φ ^ ϑ , i = 0 \mathbb{P}_N\widehat{\varphi}_{\vartheta,i}=0 P N φ ϑ , i = 0 exactly.
Theorem 3 (Consistency of the causal-effect variance estimator). ** Suppose that the conditions of Theorem 2 hold and that the additional score-stability conditions in Appendix C for consistency of the structural sandwich estimator are satisfied. In addition, assume that
1 N ∑ k = 1 K ∑ i ∈ F k ∥ ψ ^ i − ψ ~ i ∥ 2 ⟶ p 0. (22) \frac{1}{N}\sum_{k=1}^{K}\sum_{i \in\mathcal{F}_k}\lVert\widehat{\psi}_i-\widetilde{\psi}_i\rVert^2 \overset{p}{\longrightarrow} 0. \tag*{(22)} N 1 k = 1 ∑ K i ∈ F k ∑ ∥ ψ i − ψ i ∥ 2 ⟶ p 0. (22) Then J ^ ϑ ⟶ p J ϑ \widehat{J}_{\vartheta}\overset{p}{\longrightarrow}J_{\vartheta} J ϑ ⟶ p J ϑ , Σ ^ ϑ ⟶ p Σ ϑ \widehat{\Sigma}_{\vartheta}\overset{p}{\longrightarrow}\Sigma_{\vartheta} Σ ϑ ⟶ p Σ ϑ . Consequently, Σ ^ ϑ / N \widehat{\Sigma}_{\vartheta}/N Σ ϑ / N consistently estimates the asymptotic covariance matrix of ϑ ^ \widehat{\vartheta} ϑ .
For a scalar component ϑ 0 q \vartheta_{0q} ϑ 0 q with Σ ϑ , q q > 0 \Sigma_{\vartheta,qq}>0 Σ ϑ , q q > 0 , an asymptotic ( 1 − α ) (1-\alpha) ( 1 − α ) confidence interval is ϑ ^ q ± z 1 − α / 2 Σ ^ ϑ , q q / N \widehat{\vartheta}_q \pm z_{1-\alpha/2}\sqrt{\widehat{\Sigma}_{\vartheta,qq}/N} ϑ q ± z 1 − α /2 Σ ϑ , q q / N . More generally, for a full-row-rank matrix R R R such that R Σ ϑ R ′ R\Sigma_{\vartheta}R^{\prime} R Σ ϑ R ′ is nonsingular, the Wald statistic for H 0 : R ϑ 0 = c H_0:R\vartheta_0=c H 0 : R ϑ 0 = c is N ( R ϑ ^ − c ) ′ ( R Σ ^ ϑ R ′ ) − 1 ( R ϑ ^ − c ) N(R\widehat{\vartheta}-c)^{\prime}(R\widehat{\Sigma}_{\vartheta}R^{\prime})^{-1}(R\widehat{\vartheta}-c) N ( R ϑ − c ) ′ ( R Σ ϑ R ′ ) − 1 ( R ϑ − c ) , which converges to a chi-squared distribution with rank ( R ) \operatorname{rank}(R) rank ( R ) degrees of freedom.
Although Theorem 3 provides analytical standard errors, in the empirical analysis we use a cross-sectional bootstrap [11 ] . For each bootstrap replication b = 1 , … , B b=1,\ldots,B b = 1 , … , B , we draw N N N individuals with replacement from the original sample and retain the complete time trajectory of every selected individual. We then repeat the entire estimation procedure to obtain ϑ ^ ∗ ( b ) \widehat{\vartheta}^{*(b)} ϑ ∗ ( b ) . Then, { ϑ ^ ∗ ( b ) } b = 1 B \{\widehat{\vartheta}^{*(b)}\}_{b=1}^{B} { ϑ ∗ ( b ) } b = 1 B are used to calculate the bootstrap standard error. Because resampling is performed at the individual level, the procedure preserves arbitrary serial dependence within each individual trajectory. Repeating all estimation steps allows the bootstrap variation to reflect nuisance-function estimation, auxiliary-fold transformations, DML–GMM estimation, and the nonlinear counterfactual plug-in calculation.
Simulation study
The Monte Carlo study evaluates the DML–GMM estimator of β 0 = ( θ 0 ′ , γ 0 ′ ) ′ \beta_0 = (\theta_0^{\prime}, \gamma_0^{\prime})^{\prime} β 0 = ( θ 0 ′ , γ 0 ′ ) ′ , the plug-in causal-effect estimators, and the influence-function standard errors of § 4 . The design is deliberately adverse: it combines nonlinear time-varying confounding, correlated unit effects, equation-specific period effects, misspecified nuisance-function dictionaries, and sequentially endogenous differenced regressors.
Simulation design
We set T = 10 T = 10 T = 10 , N = 1600 N = 1600 N = 1600 , L X = 5 L_X = 5 L X = 5 , and L = 1 L = 1 L = 1 . Variables dated before period 1 are zero, and the structural dictionaries and parameters are
τ Y = ( d t , d t 2 , d t − 1 , d t X i t 3 , m t , m t − 1 ) ′ , τ M = ( d t , d t 2 , d t − 1 ) ′ , \tau_Y = (d_t, d_t^2, d_{t-1}, d_tX_{it3}, m_t, m_{t-1})^{\prime}, \qquad\tau_M = (d_t, d_t^2, d_{t-1})^{\prime}, τ Y = ( d t , d t 2 , d t − 1 , d t X i t 3 , m t , m t − 1 ) ′ , τ M = ( d t , d t 2 , d t − 1 ) ′ ,
θ 0 = ( 2 , 0.5 , 2 , 2 , 1 , 0.5 ) ′ , γ 0 = ( 1 , 0.5 , 0.5 ) ′ . \theta_0 = (2, 0.5, 2, 2, 1, 0.5)^{\prime}, \qquad\gamma_0 = (1, 0.5, 0.5)^{\prime}. θ 0 = ( 2 , 0.5 , 2 , 2 , 1 , 0.5 ) ′ , γ 0 = ( 1 , 0.5 , 0.5 ) ′ .
Writing q ∈ { D , M , Y } q \in\{D, M, Y\} q ∈ { D , M , Y } , the individual effects are α i q = A i + ζ i q \alpha_i^q = A_i + \zeta_i^q α i q = A i + ζ i q with a common standard-normal factor A i A_i A i and independent equation-specific components. The covariates satisfy
X i 1 j = ν i 1 j , X i t j = 0.5 X i , t − 1 , j + 1 − 0.5 2 ν i t j , j = 1 , … , 5 , X_{i1j} = \nu_{i1j}, \qquad X_{itj} = 0.5X_{i,t-1,j} + \sqrt{1 - 0.5^2}\,\nu_{itj}, \qquad j = 1,\ldots,5, X i 1 j = ν i 1 j , X i t j = 0.5 X i , t − 1 , j + 1 − 0. 5 2 ν i t j , j = 1 , … , 5 ,
and the treatment innovation is ε i t D = ξ i t D + ε i , t − 1 Y + ε i , t − 1 M \varepsilon_{it}^{D} = \xi_{it}^{D} + \varepsilon_{i,t-1}^{Y} + \varepsilon_{i,t-1}^{M} ε i t D = ξ i t D + ε i , t − 1 Y + ε i , t − 1 M for t ≥ 2 t \ge2 t ≥ 2 . The observed variables are generated recursively from
D i t = h 0 ( X i t ) + α i D + λ t D + ε i t D , D_{it} = h_0(X_{it}) + \alpha_i^D + \lambda_t^D + \varepsilon_{it}^D, D i t = h 0 ( X i t ) + α i D + λ t D + ε i t D ,
M i t = τ M ( D i , t − 1 : t , X i , t − 1 : t ) ′ γ 0 + g 0 ( X i t ) + α i M + λ t M + ε i t M , M_{it} = \tau_M(D_{i,t-1:t}, X_{i,t-1:t})^{\prime}\gamma_0 + g_0(X_{it}) + \alpha_i^M + \lambda_t^M + \varepsilon_{it}^M, M i t = τ M ( D i , t − 1 : t , X i , t − 1 : t ) ′ γ 0 + g 0 ( X i t ) + α i M + λ t M + ε i t M ,
Y i t = τ Y ( D i , t − 1 : t , M i , t − 1 : t , X i , t − 1 : t ) ′ θ 0 + f 0 ( X i t ) + α i Y + λ t Y + ε i t Y . Y_{it} = \tau_Y(D_{i,t-1:t}, M_{i,t-1:t}, X_{i,t-1:t})^{\prime}\theta_0 + f_0(X_{it}) + \alpha_i^Y + \lambda_t^Y + \varepsilon_{it}^Y. Y i t = τ Y ( D i , t − 1 : t , M i , t − 1 : t , X i , t − 1 : t ) ′ θ 0 + f 0 ( X i t ) + α i Y + λ t Y + ε i t Y .
The five covariates therefore follow stationary Gaussian AR(1) processes. The unit effects in the treatment, mediator, and outcome equations share a common latent factor, while the period effects differ across equations. The treatment disturbance contains the preceding outcome and mediator innovations. Hence treatment can respond to recent shocks, as a policy maker or firm might do, while current primitive innovations remain independent of the relevant past histories. The level equations satisfy the conditional moment restrictions used for identification, but first differencing induces correlation between the structural regressors and the differenced innovations, so contemporaneous instruments are invalid.
The nuisance functions f 0 f_0 f 0 and g 0 g_0 g 0 contain hyperbolic, trigonometric, interaction, and exponential terms, whereas estimation uses all 55 monomials of total degree at most three in the five current covariates. Thus the first-stage library does not span either nuisance function. Both methods estimate f 0 f_0 f 0 and g 0 g_0 g 0 from first-differenced and period-demeaned equations by the same ℓ 1 \ell_1 ℓ 1 -penalized GMM learner. DML–GMM uses ten folds, a cyclic auxiliary fold, and lagged residualized treatment and mediator innovations; its histories are truncated at two lags and augmented by the treatment-residual square and treatment–covariate interaction, yielding 60 outcome and 23 mediator moments. Naive–GMM instead trains once on the full sample, uses full-sample period means, and replaces residualized histories by lagged levels. Both procedures use identity weighting. The comparison therefore isolates cross-fitting, orthogonal residualization, and auxiliary-fold demeaning rather than the quality of the structural nuisance learner. Appendix D.1 gives the complete data generating process and implementation details of the first-stage, instrument, GMM, and variance calculations.
Level effects are evaluated at t = T t = T t = T , comparing d ˉ T = 1 T \bar{d}_T = \mathbf{1}_T d ˉ T = 1 T with d T ∗ = 0 T d_T^* = \mathbf{0}_T d T ∗ = 0 T and fixing the mediator history at zero for the controlled direct effect; derivative effects are evaluated at d ˉ T = 1 T \bar{d}_T = \mathbf{1}_T d ˉ T = 1 T with respect to the period-T T T treatment. The design yields
C D E T = N D E T = 4.5 , N I E T = 3 , T E T = 7.5 , N D D T , T = 3 , N I D T , T = 2 , T D T , T = 5. (23) \mathrm{CDE}_T = \mathrm{NDE}_T = 4.5, \mathrm{NIE}_T = 3, \mathrm{TE}_T = 7.5, \mathrm{NDD}_{T,T} = 3, \mathrm{NID}_{T,T} = 2, \mathrm{TD}_{T,T} = 5. \tag*{(23)} CDE T = NDE T = 4.5 , NIE T = 3 , TE T = 7.5 , NDD T , T = 3 , NID T , T = 2 , TD T , T = 5. (23)
We draw 1,000 independent panels. For each structural parameter and causal effect, we report the Monte Carlo mean, signed bias, standard deviation, root mean squared error, average estimated standard error, and coverage of the nominal 95% Wald interval. Structural standard errors use the stacked sandwich estimator developed in Appendix § 10 ; causal-effect standard errors use the estimated influence function in (21) .
Simulation results
Table 1 shows that DML–GMM is well centered for all nine structural parameters. Its absolute biases range from 0.0004 to 0.0093 and never exceed 1.1% of the corresponding truth. The average estimated standard errors track the Monte Carlo standard deviations to within 6%, and coverage stays between 0.944 and 0.958. Its RMSE is also substantially smaller for six of the nine coefficients. The three exceptions have only a small absolute RMSE advantage for Naive–GMM, and for the two mediator coefficients that apparent gain reflects a smaller dispersion around a displaced center rather than reliable estimation.
Table 1. Monte Carlo results for structural parameters and causal effects
The benchmark fails differently across the two equations. In the outcome equation, it is generally much less precise: the standard deviations of the main treatment and contemporaneous mediator coefficients are roughly two to three times those of DML–GMM. The treatment–covariate interaction also has bias −0.0295, which reduces coverage to 0.747. In the mediator equation, the problem is systematic centering and variance estimation. The estimate of γ D t \gamma_{D_t} γ D t has bias −0.1770, and the coverages of γ D t \gamma_{D_t} γ D t , γ D t 2 \gamma_{D_t^2} γ D t 2 , and γ D t − 1 \gamma_{D_{t-1}} γ D t − 1 are 0, 0.201, Notes: Each method uses 1,000 replications with T = 10 T = 10 T = 10 . Bias is signed, SD is the Monte Carlo standard deviation, RMSE is the root mean squared error, ASE is the average estimated standard error, and CP is the coverage probability of the nominal 95% Wald interval. NDE coincides with CDE by construction.
and 0.449, respectively.
Panel B gives the corresponding causal-effect results. Every DML–GMM absolute bias is below 0.028, its estimated standard errors reproduce the Monte Carlo dispersion to within 4%, and coverage ranges from 0.937 to 0.954. It also has the smaller RMSE for all seven effects. Naive–GMM remains reasonably centered for CDE, NDE, and NDD, but its errors in the mediator equation pass through the indirect channel: the biases of NIE, TE, NID, and TD are −0.3174, −0.3005, −0.2024, and −0.1678, and their coverages fall to 0.204, 0.012, 0.498, and 0.186. Its standard errors understate the Monte Carlo dispersion of every causal-effect estimator as well.
Two conclusions are important. First, the improvement cannot be attributed to a better first-stage learner, because the methods use the same covariate dictionary and the same penalized-GMM fits; it is generated by cross-fitting, residualized orthogonal moments, and independent auxiliary-fold demeaning. Second, acceptable direct-effect estimation does not guarantee a credible mediation analysis. Natural and total effects depend jointly on the outcome and mediator equations and on their estimation covariance, so a procedure can appear adequate for the direct channel while being unusable for the indirect channel. Appendix § 11 .§ 2 and D.3 show that these conclusions persist across sample sizes and under an alternative specification of the nuisance functions.
Empirical application
We apply our estimator to the question of how the workplace employment rate of a U.S. county affects personal income per capita and how much of that effect is transmitted by the local average wage. Two findings from the regional labor-market literature motivate this decomposition. Since Blanchard and Katz [2 ] , regional labor-demand shocks have been understood to move employment quickly while relative wages adjust more slowly, with participation and migration absorbing much of the adjustment. Decompositions in the tradition of Bartik [1 ] accordingly attribute the response of local income per capita mainly to the employment margin and a smaller part to average wages.
We use the county panel dataset assembled by Cerqua et al. [3 ] to illustrate the proposed method. The balanced panel contains all 3,058 U.S. counties annually from 2000 to 2019. Variables for the year 2000 are used to construct covariates and differenced variables, hence T = 19 T = 19 T = 19 . The outcome Y i t Y_{it} Y i t is log personal income per capita, the mediator M i t M_{it} M i t is log average wage per job, and the treatment D i t D_{it} D i t is the workplace employment rate. The covariate vector contains eight county characteristics measured in calendar year t − 1 t - 1 t − 1 : log population, the share of personal income received as unemployment insurance, population shares under age 18 and over age 65, births and deaths per thousand residents, and net international and domestic migration per thousand residents. Every variable is winsorized at its pooled 1% and 99% quantiles and then standardized, so the reported effects are in outcome standard deviations.
We set L = r = 0 L = r = 0 L = r = 0 and consider two structural specifications. Specification I is homogeneous,
τ Y ( d t , m t ) = ( d t , m t ) ′ , τ M ( d t ) = ( d t ) ′ , \tau_Y(d_t,m_t) = (d_t,m_t)^\prime,\qquad\tau_M(d_t) = (d_t)^\prime, τ Y ( d t , m t ) = ( d t , m t ) ′ , τ M ( d t ) = ( d t ) ′ ,
with two outcome parameters and one mediator parameter. Specification II adds treatment–covariate interactions to both equations,
τ Y ( d t , m t , X i t ) = ( d t , m t , d t X i t ′ ) ′ , τ M ( d t , X i t ) = ( d t , d t X i t ′ ) ′ , \tau_Y(d_t,m_t,X_{it}) = (d_t,m_t,d_tX_{it}^\prime)^\prime,\qquad\tau_M(d_t,X_{it}) = (d_t,d_tX_{it}^\prime)^\prime, τ Y ( d t , m t , X i t ) = ( d t , m t , d t X i t ′ ) ′ , τ M ( d t , X i t ) = ( d t , d t X i t ′ ) ′ ,
so the direct effect of employment on income and the effect of employment on wages may vary with county demographics and migration. The two specifications use the same cross-fitted first-stage construction. Appendix § 12 reports the 108-term covariate library, lagged long-difference instruments, moment dimensions, fold choices, and bootstrap implementation.
For each specification we report averages of the period-t t t derivative effects over the nineteen sample years,
N D D ‾ : = 1 T ∑ t = 1 T N D D t , t , N I D ‾ : = 1 T ∑ t = 1 T N I D t , t , T D ‾ : = 1 T ∑ t = 1 T T D t , t . (24) \overline{\mathrm{NDD}} := \frac{1}{T}\sum_{t=1}^{T}\mathrm{NDD}_{t,t},\qquad\overline{\mathrm{NID}} := \frac{1}{T}\sum_{t=1}^{T}\mathrm{NID}_{t,t},\qquad\overline{\mathrm{TD}} := \frac{1}{T}\sum_{t=1}^{T}\mathrm{TD}_{t,t}. \tag*{(24)} NDD := T 1 t = 1 ∑ T NDD t , t , NID := T 1 t = 1 ∑ T NID t , t , TD := T 1 t = 1 ∑ T TD t , t . (24)
Under Specification I, N D D t , t NDD_{t,t} N D D t , t , N I D t , t NID_{t,t} N I D t , t , and T D t , t TD_{t,t} T D t , t are constant over time. Under Specification II they vary through E ( X i t ) \mathrm{E}(X_{it}) E ( X i t ) , although the structural coefficients themselves remain constant. Because treatment enters both dictionaries linearly, the period-t t t derivatives also equal the corresponding effects of a one-standard-deviation increase in employment in period t t t , holding the other treatment components at zero. The exact equivalence and the period-specific profiles are given in Appendix § 12 .
Notes: Standard errors are the standard deviations of 500 county-trajectory bootstrap replications; intervals are Wald intervals and p p p -values are two-sided. The two specifications are bootstrapped on the same county resamples, so Panel C is the distribution of the within-replication difference and accounts for the correlation between the two sets of estimates; no p p p -value is reported for the mediated share in Panels A and B because a test against zero is not of interest there.
Table 2 shows that the total effect is large and precisely estimated under both specifications. A one-standard-deviation increase in the workplace employment rate raises log personal income per capita by 0.6162 standard deviations under Specification I and 0.6099 under Specification II. On the original scale, one treatment standard deviation equals 0.39 jobs per working-age resident and one outcome standard deviation equals 0.28 log units.
The estimate therefore corresponds to income per capita about 4.5% higher for ten additional jobs per hundred working-age residents. Both the direct and wage channels are positive at the 5% level in either specification, so wages are quantitatively relevant but not the sole pathway.
The decomposition is much less stable than the total. Because the two specifications are estimated on the same county bootstrap resamples, Panel C reports their within-replication difference and incorporates the strong dependence between the estimates. The total effect changes by only −0.0063, with a bootstrap standard error of 0.0774, whereas the indirect effect changes by −0.1514, with a standard error of 0.0616. The mediated share falls from 65.19% to 41.03%. Imposing homogeneous coefficients therefore leaves the total effect statistically indistinguishable while reallocating about one quarter of it between the two channels and reversing which channel is larger. Specification I assigns roughly two thirds of the effect to wages, contrary to the ordering suggested by the regional literature, whereas Specification II assigns about 41% to that channel.
The period-specific estimates under Specification II in Appendix § 12 show what the averages conceal. All three profiles are mildly U-shaped. The total derivative falls from 0.635 in 2001 to 0.564 in 2010 and rises to 0.692 in 2019; the direct and indirect channels reach their minima in 2008 and 2010, respectively. Since the coefficients do not vary by year, this pattern reflects changes in the cross-sectional distribution of county demographics and migration rather than time-varying structural parameters.
Although a causal interpretation relies on Assumption 4—whose plausibility could be verified via single-world intervention graphs [20 ] —we forgo such verification here for conciseness. Even so, the current application offers a useful demonstration of the estimator on a large regional panel and, in particular, of how the direct-indirect decomposition is sensitive to model specification.
Conclusion
This paper proposes a framework for causal mediation analysis within a partially linear panel data model with two-way fixed effects. We define history-specific controlled direct, natural direct, natural indirect, and total effects, together with their derivative counterparts for continuous treatments, and identify them under a sequential conditional independence assumption that conditions on the unit and period effects and therefore permits arbitrary time-invariant confounding among treatment, mediator, and outcome. Estimation combines first differencing, a three-group sample splitting scheme, and cross-fitted machine learning of the confounding functions in a GMM problem whose score is Neyman orthogonal in every nuisance component, including the mediator coefficient in the outcome instrument. Asymptotic normality is established for the structural parameters and for all causal estimands, with consistent variance estimators. In simulations, our estimator is nearly unbiased with accurate coverage, whereas a benchmark without cross-fitting, auxiliary-fold demeaning, or residualized instruments performs poorly for the mediator equation and hence for the indirect and total effects. In the U.S. county application, allowing treatment–covariate interactions leaves the total effect essentially unchanged but lowers the estimated mediated share through wages, yielding a decomposition consistent with the regional labor-market literature.
Several promising avenues remain for future research. First, since verifying the identifying assumption via causal graphs is often nontrivial in practice, a sensitivity analysis that examines the potential variation of the reported decomposition under assumption violations would be useful—particularly because, as both our simulations and application show, the decomposition is sensitive to specification choices. Second, replacing the dictionaries by a fully nonparametric specification, with the debiasing term estimated rather than derived in closed form, would remove the functional-form restriction that remains. Third, when the stable unit treatment value assumption is violated because treatments or mediators spill over across units, adapting our approach to account for such interference represents an important direction. Finally, developing an asymptotic theory that allows the number of periods to grow with the number of units would substantially broaden the scope of the framework.
Vector and High-Dimensional Mediators
This section first extends the framework to a fixed-dimensional vector mediator. We then discuss what changes when the number of mediator coordinates increases with the cross-sectional sample size. The latter discussion is not a formal extension of the theory in § 4 ; its purpose is to clarify the additional identification, regularization, and inferential issues that arise in panel mediation analysis with high-dimensional mediators.
A fixed-dimensional vector mediator
Let
M i t = ( M i t , 1 , … , M i t , q M ) ′ ∈ R q M , q M < ∞ , M_{it} = (M_{it,1}, \ldots, M_{it,q_M})' \in\mathbb{R}^{q_M}, \qquad q_M < \infty, M i t = ( M i t , 1 , … , M i t , q M ) ′ ∈ R q M , q M < ∞ ,
where q M q_M q M is fixed as N → ∞ N \to\infty N → ∞ , and define
M ‾ i t : = ( M i 1 ′ , … , M i t ′ ) ′ , m ‾ t : = ( m 1 ′ , … , m t ′ ) ′ . \overline{M}_{it} := (M'_{i1}, \ldots, M'_{it})', \qquad\overline{m}_t := (m'_1, \ldots, m'_t)'. M i t := ( M i 1 ′ , … , M i t ′ ) ′ , m t := ( m 1 ′ , … , m t ′ ) ′ .
The potential outcome is written as Y i t ( d ‾ t , m ‾ t ) Y_{it}(\overline{d}_t,\overline{m}_t) Y i t ( d t , m t ) , while M ‾ i t ( d ‾ t ) \overline{M}_{it}(\overline{d}_t) M i t ( d t ) denotes the vector of potential mediators under treatment history d ‾ t \overline{d}_t d t . Its natural history is
M ‾ i t ( d ‾ t ) : = { M i 1 ( d 1 ) ′ , M i 2 ( d 2 ) ′ , … , M i t ( d ‾ t ) ′ } . \overline{M}_{it}(\overline{d}_t) := \{M_{i1}(d_1)', M_{i2}(d_2)', \ldots, M_{it}(\overline{d}_t)'\}. M i t ( d t ) := { M i 1 ( d 1 ) ′ , M i 2 ( d 2 ) ′ , … , M i t ( d t ) ′ } .
SUTVA, no anticipation, and consistency are understood jointly for the entire mediator vector. We treat its coordinates as parallel mediators: they may be statistically dependent, but no contemporaneous causal ordering among them is imposed.
Joint level effects. The mediator vector is treated as one jointly intervenable block. For two treatment histories d ˉ t \bar d_t d ˉ t and d ˉ t ∗ \bar d_t^* d ˉ t ∗ , define
CDE t ( v ) ( d ˉ t , d ˉ t ∗ ; m ˉ t ) : = E { Y i t ( d ˉ t , m ˉ t ) − Y i t ( d ˉ t ∗ , m ˉ t ) } , (25) \operatorname{CDE}^{(v)}_t(\bar d_t,\bar d_t^*;\bar m_t) := \mathrm{E}\{Y_{it}(\bar d_t,\bar m_t)-Y_{it}(\bar d_t^*,\bar m_t)\}, \tag*{(25)} CDE t ( v ) ( d ˉ t , d ˉ t ∗ ; m ˉ t ) := E { Y i t ( d ˉ t , m ˉ t ) − Y i t ( d ˉ t ∗ , m ˉ t )} , (25)
NDE t ( v ) ( d ˉ t , d ˉ t ∗ ) : = E [ Y i t { d ˉ t , M ‾ i t ( d ˉ t ∗ ) } − Y i t { d ˉ t ∗ , M ‾ i t ( d ˉ t ∗ ) } ] , \operatorname{NDE}^{(v)}_t(\bar d_t,\bar d_t^*) := \mathrm{E}\left[Y_{it}\{\bar d_t,\overline{M}_{it}(\bar d_t^*)\}-Y_{it}\{\bar d_t^*,\overline{M}_{it}(\bar d_t^*)\}\right], NDE t ( v ) ( d ˉ t , d ˉ t ∗ ) := E [ Y i t { d ˉ t , M i t ( d ˉ t ∗ )} − Y i t { d ˉ t ∗ , M i t ( d ˉ t ∗ )} ] ,
NIE t ( v ) ( d ˉ t , d ˉ t ∗ ) : = E [ Y i t { d ˉ t , M ‾ i t ( d ˉ t ) } − Y i t { d ˉ t , M ‾ i t ( d ˉ t ∗ ) } ] , (26) \operatorname{NIE}^{(v)}_t(\bar d_t,\bar d_t^*) := \mathrm{E}\left[Y_{it}\{\bar d_t,\overline{M}_{it}(\bar d_t)\}-Y_{it}\{\bar d_t,\overline{M}_{it}(\bar d_t^*)\}\right], \tag*{(26)} NIE t ( v ) ( d ˉ t , d ˉ t ∗ ) := E [ Y i t { d ˉ t , M i t ( d ˉ t )} − Y i t { d ˉ t , M i t ( d ˉ t ∗ )} ] , (26)
TE t ( v ) ( d ˉ t , d ˉ t ∗ ) : = E [ Y i t { d ˉ t , M ‾ i t ( d ˉ t ) } − Y i t { d ˉ t ∗ , M ‾ i t ( d ˉ t ∗ ) } ] . (27) \operatorname{TE}^{(v)}_t(\bar d_t,\bar d_t^*) := \mathrm{E}\left[Y_{it}\{\bar d_t,\overline{M}_{it}(\bar d_t)\}-Y_{it}\{\bar d_t^*,\overline{M}_{it}(\bar d_t^*)\}\right]. \tag*{(27)} TE t ( v ) ( d ˉ t , d ˉ t ∗ ) := E [ Y i t { d ˉ t , M i t ( d ˉ t )} − Y i t { d ˉ t ∗ , M i t ( d ˉ t ∗ )} ] . (27)
As in the scalar case,
TE t ( v ) ( d ˉ t , d ˉ t ∗ ) = NDE t ( v ) ( d ˉ t , d ˉ t ∗ ) + NIE t ( v ) ( d ˉ t , d ˉ t ∗ ) . \operatorname{TE}^{(v)}_t(\bar d_t,\bar d_t^*)=\operatorname{NDE}^{(v)}_t(\bar d_t,\bar d_t^*)+\operatorname{NIE}^{(v)}_t(\bar d_t,\bar d_t^*). TE t ( v ) ( d ˉ t , d ˉ t ∗ ) = NDE t ( v ) ( d ˉ t , d ˉ t ∗ ) + NIE t ( v ) ( d ˉ t , d ˉ t ∗ ) .
Joint derivative effects. Suppose that the treatment and every mediator coordinate are continuous, the relevant maps are continuously differentiable, and differentiation may be interchanged with expectation. Define
Ψ t ( v ) ( a ˉ t , b ˉ t ) : = E [ Y i t { a ˉ t , M ‾ i t ( b ˉ t ) } ] . \Psi^{(v)}_t(\bar a_t,\bar b_t):=\mathrm{E}\left[Y_{it}\{\bar a_t,\overline{M}_{it}(\bar b_t)\}\right]. Ψ t ( v ) ( a ˉ t , b ˉ t ) := E [ Y i t { a ˉ t , M i t ( b ˉ t )} ] .
For j ≤ t j\le t j ≤ t , define
CDD t , j ( v ) ( d ˉ t , m ˉ t ) : = ∂ ∂ a j E { Y i t ( d ˉ t , m ˉ t ) } , \operatorname{CDD}^{(v)}_{t,j}(\bar d_t,\bar m_t):=\frac{\partial}{\partial a_j}\mathrm{E}\{Y_{it}(\bar d_t,\bar m_t)\}, CDD t , j ( v ) ( d ˉ t , m ˉ t ) := ∂ a j ∂ E { Y i t ( d ˉ t , m ˉ t )} ,
NDD t , j ( v ) ( d ˉ t ) : = ∂ ∂ a j Ψ t ( v ) ( a ˉ t , b ˉ t ) ∣ a ˉ t = b ˉ t = d ˉ t , \operatorname{NDD}^{(v)}_{t,j}(\bar d_t):=\left.\frac{\partial}{\partial a_j}\Psi^{(v)}_t(\bar a_t,\bar b_t)\right|_{\bar a_t=\bar b_t=\bar d_t}, NDD t , j ( v ) ( d ˉ t ) := ∂ a j ∂ Ψ t ( v ) ( a ˉ t , b ˉ t ) a ˉ t = b ˉ t = d ˉ t ,
NID t , j ( v ) ( d ˉ t ) : = ∂ ∂ b j Ψ t ( v ) ( a ˉ t , b ˉ t ) ∣ a ˉ t = b ˉ t = d ˉ t , \operatorname{NID}^{(v)}_{t,j}(\bar d_t):=\left.\frac{\partial}{\partial b_j}\Psi^{(v)}_t(\bar a_t,\bar b_t)\right|_{\bar a_t=\bar b_t=\bar d_t}, NID t , j ( v ) ( d ˉ t ) := ∂ b j ∂ Ψ t ( v ) ( a ˉ t , b ˉ t ) a ˉ t = b ˉ t = d ˉ t ,
TD t , j ( v ) ( d ˉ t ) : = ∂ ∂ d j E [ Y i t { d ˉ t , M ‾ i t ( d ˉ t ) } ] . \operatorname{TD}^{(v)}_{t,j}(\bar d_t):=\frac{\partial}{\partial d_j}\mathrm{E}\left[Y_{it}\{\bar d_t,\overline{M}_{it}(\bar d_t)\}\right]. TD t , j ( v ) ( d ˉ t ) := ∂ d j ∂ E [ Y i t { d ˉ t , M i t ( d ˉ t )} ] .
The chain rule gives
TD t , j ( v ) ( d ˉ t ) = NDD t , j ( v ) ( d ˉ t ) + NID t , j ( v ) ( d ˉ t ) , \operatorname{TD}^{(v)}_{t,j}(\bar d_t)=\operatorname{NDD}^{(v)}_{t,j}(\bar d_t)+\operatorname{NID}^{(v)}_{t,j}(\bar d_t), TD t , j ( v ) ( d ˉ t ) = NDD t , j ( v ) ( d ˉ t ) + NID t , j ( v ) ( d ˉ t ) ,
and
NID t , j ( v ) ( d ˉ t ) = ∑ ℓ = 1 q M NID t , j , ℓ ( v ) ( d ˉ t ) . (28) \operatorname{NID}^{(v)}_{t,j}(\bar d_t)=\sum_{\ell=1}^{q_M}\operatorname{NID}^{(v)}_{t,j,\ell}(\bar d_t). \tag*{(28)} NID t , j ( v ) ( d ˉ t ) = ℓ = 1 ∑ q M NID t , j , ℓ ( v ) ( d ˉ t ) . (28)
NID t , j , ℓ ( v ) ( d ˉ t ) : = E [ ∑ r = j t ∂ Y i t ( d ˉ t , m ˉ t ) ∂ m r ℓ ∣ m ˉ t = M ˉ i t ( d ˉ t ) ∂ M i r , ℓ ( d ˉ r ) ∂ d j ] . \operatorname{NID}^{(v)}_{t,j,\ell}(\bar{d}_t) := \mathbb{E}\left[\sum_{r=j}^{t}\left.\frac{\partial Y_{it}(\bar{d}_t,\bar{m}_t)}{\partial m_{r\ell}}\right|_{\bar{m}_t=\bar{M}_{it}(\bar{d}_t)}\frac{\partial M_{ir,\ell}(\bar{d}_r)}{\partial d_j}\right]. NID t , j , ℓ ( v ) ( d ˉ t ) := E [ r = j ∑ t ∂ m r ℓ ∂ Y i t ( d ˉ t , m ˉ t ) m ˉ t = M ˉ i t ( d ˉ t ) ∂ d j ∂ M i r , ℓ ( d ˉ r ) ] .
Under the finite-lag model below, terms outside the relevant lag window are zero.
derivative decomposition is invariant to the order in which the mediator coordinates are listed.
Vector partially linear mediation model. A convenient stacked representation is
Y i t ( d ˉ t , m ˉ t ) = τ Y ( v ) ( d ˉ t − L : t , m ˉ t − L : t , X ˉ i , t − L : t ) ′ θ 0 + f 0 ( X ˉ i , t − L : t ) + α i Y + λ t Y + ε i t Y , M i t ( d ˉ t ) = T M ( d ˉ t − L : t , X ˉ i , t − L : t ) γ 0 + g 0 ( X ˉ i , t − L : t ) + α i M + λ t M + ε i t M . \begin{aligned}
Y_{it}(\bar{d}_t,\bar{m}_t) &= \tau_Y^{(v)}(\bar{d}_{t-L:t},\bar{m}_{t-L:t},\bar{X}_{i,t-L:t})'\theta_0 + f_0(\bar{X}_{i,t-L:t}) + \alpha_i^Y + \lambda_t^Y + \varepsilon_{it}^Y, \\
M_{it}(\bar{d}_t) &= \mathcal{T}_M(\bar{d}_{t-L:t},\bar{X}_{i,t-L:t})\gamma_0 + g_0(\bar{X}_{i,t-L:t}) + \alpha_i^M + \lambda_t^M + \varepsilon_{it}^M.
\end{aligned} Y i t ( d ˉ t , m ˉ t ) M i t ( d ˉ t ) = τ Y ( v ) ( d ˉ t − L : t , m ˉ t − L : t , X ˉ i , t − L : t ) ′ θ 0 + f 0 ( X ˉ i , t − L : t ) + α i Y + λ t Y + ε i t Y , = T M ( d ˉ t − L : t , X ˉ i , t − L : t ) γ 0 + g 0 ( X ˉ i , t − L : t ) + α i M + λ t M + ε i t M .
Here τ Y ( v ) ∈ R s Y \tau_Y^{(v)} \in\mathbb{R}^{s_Y} τ Y ( v ) ∈ R s Y , T M ∈ R q M × s M \mathcal{T}_M \in\mathbb{R}^{q_M \times s_M} T M ∈ R q M × s M , θ 0 ∈ R s Y \theta_0 \in\mathbb{R}^{s_Y} θ 0 ∈ R s Y , and γ 0 ∈ R s M \gamma_0 \in\mathbb{R}^{s_M} γ 0 ∈ R s M , with s Y s_Y s Y and s M s_M s M fixed, and β 0 : = ( θ 0 ′ , γ 0 ′ ) ′ \beta_0 := (\theta_0',\gamma_0')' β 0 := ( θ 0 ′ , γ 0 ′ ) ′ . The quantities g 0 g_0 g 0 , α i M \alpha_i^M α i M , λ t M \lambda_t^M λ t M , and ε i t M \varepsilon_{it}^M ε i t M are q M q_M q M -vectors. Separate dictionaries and coefficient blocks for the mediator equations can be represented by assigning disjoint subvectors of γ 0 \gamma_0 γ 0 to the rows of T M \mathcal{T}_M T M . The outcome dictionary may contain coordinate-specific mediator terms, mediator–mediator interactions, treatment–mediator interactions, and lags, provided its dimension remains fixed. The mediator innovations may be arbitrarily correlated across coordinates.
The potential-outcome disturbances satisfy
E ( ε i t Y ∣ X ˉ i t , α i Y , λ ˉ t Y ) = 0 , E ( ε i t M ∣ X ˉ i t , α i M , λ ˉ t M ) = 0. \mathbb{E}(\varepsilon_{it}^Y \mid\bar{X}_{it},\alpha_i^Y,\bar{\lambda}_t^Y)=0,\qquad\mathbb{E}(\varepsilon_{it}^M \mid\bar{X}_{it},\alpha_i^M,\bar{\lambda}_t^M)=0. E ( ε i t Y ∣ X ˉ i t , α i Y , λ ˉ t Y ) = 0 , E ( ε i t M ∣ X ˉ i t , α i M , λ ˉ t M ) = 0.
where λ ˉ t M : = ( λ 1 M ′ , … , λ t M ′ ) ′ \bar{\lambda}_t^M := (\lambda_1^{M\prime},\ldots,\lambda_t^{M\prime})' λ ˉ t M := ( λ 1 M ′ , … , λ t M ′ ) ′ . The vector analogue of Assumption 4 replaces every scalar mediator by the complete vector and interprets the conditional independence statements jointly. Coordinatewise independence conditions do not generally imply the required joint restriction, and the support condition in Theorem 1 must hold for the joint mediator history. Under these conditions and consistency, the observed system is
Y i t = τ Y ( v ) ( D ˉ i , t − L : t , M ˉ i , t − L : t , X ˉ i , t − L : t ) ′ θ 0 + f 0 ( X ˉ i , t − L : t ) + α i Y + λ t Y + ε i t Y , E ( ε i t Y ∣ X ˉ i t , D ˉ i t , M ˉ i t , α i Y , λ ˉ t Y ) = 0 , M i t = T M ( D ˉ i , t − L : t , X ˉ i , t − L : t ) γ 0 + g 0 ( X ˉ i , t − L : t ) + α i M + λ t M + ε i t M , E ( ε i t M ∣ X ˉ i t , D ˉ i t , α i M , λ ˉ t M ) = 0. (29) \begin{aligned}
Y_{it} &= \tau_Y^{(v)}(\bar{D}_{i,t-L:t},\bar{M}_{i,t-L:t},\bar{X}_{i,t-L:t})'\theta_0 + f_0(\bar{X}_{i,t-L:t}) + \alpha_i^Y + \lambda_t^Y + \varepsilon_{it}^Y, \\
\mathbb{E}(\varepsilon_{it}^Y \mid\bar{X}_{it},\bar{D}_{it},\bar{M}_{it},\alpha_i^Y,\bar{\lambda}_t^Y) &= 0, \\
M_{it} &= \mathcal{T}_M(\bar{D}_{i,t-L:t},\bar{X}_{i,t-L:t})\gamma_0 + g_0(\bar{X}_{i,t-L:t}) + \alpha_i^M + \lambda_t^M + \varepsilon_{it}^M, \\
\mathbb{E}(\varepsilon_{it}^M \mid\bar{X}_{it},\bar{D}_{it},\alpha_i^M,\bar{\lambda}_t^M) &= 0. \tag*{(29)}
\end{aligned} Y i t E ( ε i t Y ∣ X ˉ i t , D ˉ i t , M ˉ i t , α i Y , λ ˉ t Y ) M i t E ( ε i t M ∣ X ˉ i t , D ˉ i t , α i M , λ ˉ t M ) = τ Y ( v ) ( D ˉ i , t − L : t , M ˉ i , t − L : t , X ˉ i , t − L : t ) ′ θ 0 + f 0 ( X ˉ i , t − L : t ) + α i Y + λ t Y + ε i t Y , = 0 , = T M ( D ˉ i , t − L : t , X ˉ i , t − L : t ) γ 0 + g 0 ( X ˉ i , t − L : t ) + α i M + λ t M + ε i t M , = 0. (29)
For DML–GMM estimation, (6) is replaced by
E ( ε i t M ∣ X i T , D ˉ i t , α i M , λ ˉ t M ) = 0. (30) \mathbb{E}(\varepsilon_{it}^{M} \mid X_{iT}, \bar{D}_{it}, \alpha_{i}^{M}, \bar{\lambda}_{t}^{M}) = 0. \tag*{(30)} E ( ε i t M ∣ X i T , D ˉ i t , α i M , λ ˉ t M ) = 0. (30)
The treatment model (5) is unchanged. The cross-sectional sampling condition is imposed on the complete vector trajectory, with arbitrary temporal and cross-coordinate dependence within an individual. If one mediator coordinate causally precedes another within period t t t , a recursive mediator system should instead be specified, with sequential restrictions and nested counterfactuals that follow that ordering.
DML–GMM moments. First differencing and auxiliary-fold demeaning are applied componentwise. With Δ τ Y , i t ( v ) \Delta\tau_{Y,it}^{(v)} Δ τ Y , i t ( v ) , Δ T M , i t \Delta T_{M,it} Δ T M , i t , and Δ g i t \Delta g_{it} Δ g i t denoting the corresponding time differences and the superscript ∗ * ∗ denoting the componentwise transformation in (8), define
U i t Y , v ( f , θ ) : = Δ Y i t ∗ − Δ τ Y , i t ( v ) ∗ ′ θ − Δ f i t ∗ , U_{it}^{Y,v}(f,\theta) := \Delta Y_{it}^{*} - \Delta\tau_{Y,it}^{(v)*\prime}\theta- \Delta f_{it}^{*}, U i t Y , v ( f , θ ) := Δ Y i t ∗ − Δ τ Y , i t ( v ) ∗ ′ θ − Δ f i t ∗ ,
U i t M , v ( g , γ ) : = Δ M i t ∗ − Δ T M , i t ∗ γ − Δ g i t ∗ , U_{it}^{M,v}(g,\gamma) := \Delta M_{it}^{*} - \Delta T_{M,it}^{*}\gamma- \Delta g_{it}^{*}, U i t M , v ( g , γ ) := Δ M i t ∗ − Δ T M , i t ∗ γ − Δ g i t ∗ ,
U i t D ( h ) : = Δ D i t ∗ − Δ h i t ∗ . U_{it}^{D}(h) := \Delta D_{it}^{*} - \Delta h_{it}^{*}. U i t D ( h ) := Δ D i t ∗ − Δ h i t ∗ .
For t = 3 , … , T t=3,\ldots,T t = 3 , … , T , let
A i t M , v ( h ) : = ( U i 2 D ( h ) , … , U i , t − 1 D ( h ) ) ′ , A_{it}^{M,v}(h) := \left(U_{i2}^{D}(h),\ldots,U_{i,t-1}^{D}(h)\right)^{\prime}, A i t M , v ( h ) := ( U i 2 D ( h ) , … , U i , t − 1 D ( h ) ) ′ ,
A i t Y , v ( h , g , γ ˉ ) : = ( U i 2 D ( h ) , … , U i , t − 1 D ( h ) , U i 2 M , v ( g , γ ˉ ) ′ , … , U i , t − 1 M , v ( g , γ ˉ ) ′ ) ′ , A_{it}^{Y,v}(h,g,\bar{\gamma}) := \left(U_{i2}^{D}(h),\ldots,U_{i,t-1}^{D}(h),U_{i2}^{M,v}(g,\bar{\gamma})^{\prime},\ldots,U_{i,t-1}^{M,v}(g,\bar{\gamma})^{\prime}\right)^{\prime}, A i t Y , v ( h , g , γ ˉ ) := ( U i 2 D ( h ) , … , U i , t − 1 D ( h ) , U i 2 M , v ( g , γ ˉ ) ′ , … , U i , t − 1 M , v ( g , γ ˉ ) ′ ) ′ ,
where γ ˉ \bar{\gamma} γ ˉ is the nuisance copy used only to construct the outcome instrument. Let W i W_i W i denote the complete observed trajectory containing the vector mediator. For η ( v ) : = ( f , g , h , γ ˉ ) \eta^{(v)} := (f,g,h,\bar{\gamma}) η ( v ) := ( f , g , h , γ ˉ ) and η 0 ( v ) : = ( f 0 , g 0 , h 0 , γ 0 ) \eta_{0}^{(v)} := (f_0,g_0,h_0,\gamma_0) η 0 ( v ) := ( f 0 , g 0 , h 0 , γ 0 ) , define
ψ i t Y , v ( W i ; η ( v ) , θ ) : = A i t Y , v ( h , g , γ ˉ ) U i t Y , v ( f , θ ) , (31) \psi_{it}^{Y,v}(W_i;\eta^{(v)},\theta) := A_{it}^{Y,v}(h,g,\bar{\gamma})U_{it}^{Y,v}(f,\theta), \tag*{(31)} ψ i t Y , v ( W i ; η ( v ) , θ ) := A i t Y , v ( h , g , γ ˉ ) U i t Y , v ( f , θ ) , (31)
ψ i t M , v ( W i ; η ( v ) , γ ) : = vec { A i t M , v ( h ) U i t M , v ( g , γ ) ′ } = U i t M , v ( g , γ ) ⊗ A i t M , v ( h ) . (32) \psi_{it}^{M,v}(W_i;\eta^{(v)},\gamma) := \operatorname{vec}\{A_{it}^{M,v}(h)U_{it}^{M,v}(g,\gamma)^{\prime}\} = U_{it}^{M,v}(g,\gamma) \otimes A_{it}^{M,v}(h). \tag*{(32)} ψ i t M , v ( W i ; η ( v ) , γ ) := vec { A i t M , v ( h ) U i t M , v ( g , γ ) ′ } = U i t M , v ( g , γ ) ⊗ A i t M , v ( h ) . (32)
For β = ( θ ′ , γ ′ ) \beta= (\theta', \gamma') β = ( θ ′ , γ ′ ) , let ψ i ( v ) ( W i ; η ( v ) , β ) \psi_i^{(v)}(W_i; \eta^{(v)}, \beta) ψ i ( v ) ( W i ; η ( v ) , β ) denote the vector obtained by stacking (A.7) and (A.8) over t = 3 , … , T t = 3, \ldots, T t = 3 , … , T . Under (A.5), (5) , and (A.6),
E { ψ i ( v ) ( W i ; η 0 ( v ) , β 0 ) } = 0 , \mathbb{E}\{\psi_i^{(v)}(W_i; \eta_0^{(v)}, \beta_0)\} = 0, E { ψ i ( v ) ( W i ; η 0 ( v ) , β 0 )} = 0 ,
and the Gateaux derivative of this expectation with respect to every component of f f f , g g g , h h h , and γ ‾ \overline{\gamma} γ is zero at the truth.
Let ψ ^ i k , ( v ) ( β ) \widehat{\psi}_i^{k,(v)}(\beta) ψ i k , ( v ) ( β ) be the cross-fitted version of this individual score, constructed as in Algorithm 1 with a vector-valued estimate of g 0 \boldsymbol{g}_0 g 0 and a preliminary estimate γ ~ k \widetilde{\gamma}_k γ k . Define
β ^ 0 D , v : = arg min β ∈ R s Y + s M m ^ N ( v ) ( β ) ′ Ω ^ ( v ) m ^ N ( v ) ( β ) , m ^ N ( v ) ( β ) : = 1 N ∑ k = 1 K ∑ i ∈ F k ψ ^ i k , ( v ) ( β ) , \widehat{\beta}_0^{D,v} := \mathop{\arg\min}_{\beta\in\mathbb{R}^{s_Y+s_M}} \widehat{m}_N^{(v)}(\beta)'\widehat{\Omega}^{(v)}\widehat{m}_N^{(v)}(\beta), \qquad\widehat{m}_N^{(v)}(\beta) := \frac{1}{N}\sum_{k=1}^{K}\sum_{i\in\mathcal{F}_k}\widehat{\psi}_i^{k,(v)}(\beta), β 0 D , v := arg min β ∈ R s Y + s M m N ( v ) ( β ) ′ Ω ( v ) m N ( v ) ( β ) , m N ( v ) ( β ) := N 1 k = 1 ∑ K i ∈ F k ∑ ψ i k , ( v ) ( β ) ,
where Ω ^ ( v ) \widehat{\Omega}^{(v)} Ω ( v ) is positive definite and fixed during minimization. The nuisance copy keeps the score affine in the final candidate β \beta β .
For t = 3 , … , T t = 3, \ldots, T t = 3 , … , T , define the uncentered innovation instruments
A i t , 0 M , v : = ( Δ ε i 2 D , … , Δ ε i , t − 1 D ) ′ , A_{it,0}^{M,v} := (\Delta\varepsilon_{i2}^{D},\ldots,\Delta\varepsilon_{i,t-1}^{D})', A i t , 0 M , v := ( Δ ε i 2 D , … , Δ ε i , t − 1 D ) ′ ,
A i t , 0 Y , v : = ( Δ ε i 2 D , … , Δ ε i , t − 1 D , Δ ε i 2 M ′ , … , Δ ε i , t − 1 M ′ ) ′ . A_{it,0}^{Y,v} := (\Delta\varepsilon_{i2}^{D},\ldots,\Delta\varepsilon_{i,t-1}^{D},\Delta\varepsilon_{i2}^{M'},\ldots,\Delta\varepsilon_{i,t-1}^{M'})'. A i t , 0 Y , v := ( Δ ε i 2 D , … , Δ ε i , t − 1 D , Δ ε i 2 M ′ , … , Δ ε i , t − 1 M ′ ) ′ .
The oracle individual score that enters the limiting representation is
ψ ~ i ( v ) : = ( { A i t , 0 Y , v Δ ε i t Y } t = 3 T { vec ( A i t , 0 M , v Δ ε i t M ′ ) } t = 3 T ) , \widetilde{\psi}_i^{(v)} := \begin{pmatrix}
\{A_{it,0}^{Y,v}\Delta\varepsilon_{it}^{Y}\}_{t=3}^{T}\\
\{\operatorname{vec}(A_{it,0}^{M,v}\Delta\varepsilon_{it}^{M'})\}_{t=3}^{T}
\end{pmatrix}, ψ i ( v ) := ( { A i t , 0 Y , v Δ ε i t Y } t = 3 T { vec ( A i t , 0 M , v Δ ε i t M ′ ) } t = 3 T ) ,
where braces indexed by t t t mean vertical stacking. This is the vector counterpart of ψ ~ i \widetilde{\psi}_i ψ i in (A.13); it is written in terms of uncentered innovations because the auxiliary-fold mean-subtraction terms are asymptotically negligible. In the display below, I q M I_{q_M} I q M denotes the q M × q M q_M \times q_M q M × q M identity matrix. Let
G ( v ) : = − E ( { A i t , 0 Y , v Δ τ Y , i t ( v ) } t = 3 T 0 0 { ( I q M ⊗ A i t , 0 M , v ) Δ τ M , i t } t = 3 T ) , Ψ ( v ) : = E ( ψ ~ i ( v ) ψ ~ i ( v ) ′ ) . (33) G^{(v)} := -\mathbb{E}\begin{pmatrix}
\{A_{it,0}^{Y,v}\Delta\tau_{Y,it}^{(v)}\}_{t=3}^{T} & \boldsymbol{0}\\
\boldsymbol{0} & \{(I_{q_M}\otimes A_{it,0}^{M,v})\Delta\tau_{M,it}\}_{t=3}^{T}
\end{pmatrix}, \qquad\Psi^{(v)} := \mathbb{E}(\widetilde{\psi}_i^{(v)}\widetilde{\psi}_i^{(v)'}). \tag*{(33)} G ( v ) := − E ( { A i t , 0 Y , v Δ τ Y , i t ( v ) } t = 3 T 0 0 {( I q M ⊗ A i t , 0 M , v ) Δ τ M , i t } t = 3 T ) , Ψ ( v ) := E ( ψ i ( v ) ψ i ( v ) ′ ) . (33)
For a positive-definite probability limit Ω ( v ) \boldsymbol{\Omega}^{(v)} Ω ( v ) of Ω ^ ( v ) \widehat{\boldsymbol{\Omega}}^{(v)} Ω ( v ) , define
A 0 ( v ) : = { G ( v ) Ω ( v ) G ( v ) ′ } − 1 G ( v ) ′ Ω ( v ) , V β ( v ) : = A 0 ( v ) Ψ ( v ) A 0 ( v ) ′ . \mathcal{A}^{(v)}_0 := \left\{\mathbf{G}^{(v)}\boldsymbol{\Omega}^{(v)}\mathbf{G}^{(v)\prime}\right\}^{-1}\mathbf{G}^{(v)\prime}\boldsymbol{\Omega}^{(v)},\quad\mathbf{V}^{(v)}_\beta:= \mathcal{A}^{(v)}_0\boldsymbol{\Psi}^{(v)}\mathcal{A}^{(v)\prime}_0. A 0 ( v ) := { G ( v ) Ω ( v ) G ( v ) ′ } − 1 G ( v ) ′ Ω ( v ) , V β ( v ) := A 0 ( v ) Ψ ( v ) A 0 ( v ) ′ .
The counterfactual maps are
M i t β , v ( d ˉ t ) : = M i t + { T M ( d ˉ t − L : t , X ˉ i , t − L : t ) − T M ( D ˉ i , t − L : t , X ˉ i , t − L : t ) } γ , (34) M^{\beta,v}_{it}(\bar{d}_t) := M_{it}+\left\{\mathcal{T}_M(\bar{d}_{t-L:t},\bar{X}_{i,t-L:t})-\mathcal{T}_M(\bar{D}_{i,t-L:t},\bar{X}_{i,t-L:t})\right\}\gamma, \tag*{(34)} M i t β , v ( d ˉ t ) := M i t + { T M ( d ˉ t − L : t , X ˉ i , t − L : t ) − T M ( D ˉ i , t − L : t , X ˉ i , t − L : t ) } γ , (34)
Y i t β , v ( d ˉ t , m ˉ t ) : = Y i t + { τ Y ( v ) ( d ˉ t − L : t , m ˉ t − L : t , X ˉ i , t − L : t ) − τ Y ( v ) ( D ˉ i , t − L : t , M ˉ i , t − L : t , X ˉ i , t − L : t ) } ′ θ . (35) Y^{\beta,v}_{it}(\bar{d}_t,\bar{m}_t) := Y_{it}+\left\{\tau^{(v)}_Y(\bar{d}_{t-L:t},\bar{m}_{t-L:t},\bar{X}_{i,t-L:t})-\tau^{(v)}_Y(\bar{D}_{i,t-L:t},\bar{M}_{i,t-L:t},\bar{X}_{i,t-L:t})\right\}^{\prime}\theta. \tag*{(35)} Y i t β , v ( d ˉ t , m ˉ t ) := Y i t + { τ Y ( v ) ( d ˉ t − L : t , m ˉ t − L : t , X ˉ i , t − L : t ) − τ Y ( v ) ( D ˉ i , t − L : t , M ˉ i , t − L : t , X ˉ i , t − L : t ) } ′ θ . (35)
For any fixed finite collection of the joint level or derivative effects, let ℓ ( v ) ( W i ; β ) \ell^{(v)}(W_i;\beta) ℓ ( v ) ( W i ; β ) denote the corresponding individual plug-in contribution constructed from these maps, with natural mediator histories formed by stacking M i s β , v ( d ˉ s ) M^{\beta,v}_{is}(\bar{d}_s) M i s β , v ( d ˉ s ) over s ≤ t s\leq t s ≤ t . Define
ϑ 0 ( v ) : = E { ℓ ( v ) ( W i ; β 0 ) } , J ϑ ( v ) : = E { ∂ ℓ ( v ) ( W i ; β ) ∂ β ′ ∣ β = β 0 } , \vartheta^{(v)}_0 := \mathrm{E}\{\ell^{(v)}(W_i;\beta_0)\},\qquad\mathbf{J}^{(v)}_\vartheta:= \mathrm{E}\left\{\left.\frac{\partial\ell^{(v)}(W_i;\beta)}{\partial\beta^{\prime}}\right|_{\beta=\beta_0}\right\}, ϑ 0 ( v ) := E { ℓ ( v ) ( W i ; β 0 )} , J ϑ ( v ) := E { ∂ β ′ ∂ ℓ ( v ) ( W i ; β ) β = β 0 } ,
φ ϑ , i ( v ) : = ℓ ( v ) ( W i ; β 0 ) − ϑ 0 ( v ) − J ϑ ( v ) A 0 ( v ) ψ ~ i ( v ) , Σ ϑ ( v ) : = E { φ ϑ , i ( v ) φ ϑ , i ( v ) ′ } . \varphi^{(v)}_{\vartheta,i}:=\ell^{(v)}(W_i;\beta_0)-\vartheta^{(v)}_0-\mathbf{J}^{(v)}_\vartheta\mathcal{A}^{(v)}_0\widetilde{\psi}^{(v)}_i,\qquad\boldsymbol{\Sigma}^{(v)}_\vartheta:=\mathrm{E}\{\varphi^{(v)}_{\vartheta,i}\varphi^{(v)\prime}_{\vartheta,i}\}. φ ϑ , i ( v ) := ℓ ( v ) ( W i ; β 0 ) − ϑ 0 ( v ) − J ϑ ( v ) A 0 ( v ) ψ i ( v ) , Σ ϑ ( v ) := E { φ ϑ , i ( v ) φ ϑ , i ( v ) ′ } .
Proposition A1 (Fixed-dimensional vector extension). Suppose q M q_M q M , s Y s_Y s Y , s M s_M s M , T T T , K K K , L L L , and r r r are fixed. Assume the vector models, joint identification and support conditions, cross-sectional sampling condition, and conditional moment restrictions above, together with the treatment model (5) and the vector analogues of Assumptions A1–A3. If Ω ^ ( v ) → p Ω ( v ) \widehat{\boldsymbol{\Omega}}^{(v)}\overset{p}{\to}\boldsymbol{\Omega}^{(v)} Ω ( v ) → p Ω ( v ) for a positive-definite Ω ( v ) \boldsymbol{\Omega}^{(v)} Ω ( v ) and G ( v ) \mathbf{G}^{(v)} G ( v ) has full column rank, then
N ( β ^ 0 D , v − β 0 ) = − A 0 ( v ) 1 N ∑ i = 1 N ψ ~ i ( v ) + o p ( 1 ) ⟶ d N ( 0 , V β ( v ) ) . (36) \sqrt{N}(\widehat{\beta}^{D,v}_0-\beta_0)=-\mathcal{A}^{(v)}_0\frac{1}{\sqrt{N}}\sum_{i=1}^{N}\widetilde{\psi}^{(v)}_i+o_p(1)\overset{d}{\longrightarrow}N(0,\mathbf{V}^{(v)}_\beta). \tag*{(36)} N ( β 0 D , v − β 0 ) = − A 0 ( v ) N 1 i = 1 ∑ N ψ i ( v ) + o p ( 1 ) ⟶ d N ( 0 , V β ( v ) ) . (36) If the vector analogue of Assumption 5 also holds, then ϑ ^ ( v ) : = P N ℓ ( v ) ( W i ; β ^ 0 D , v ) \widehat{\vartheta}^{(v)}:=\mathbb{P}_N\ell^{(v)}(W_i;\widehat{\beta}^{D,v}_0) ϑ ( v ) := P N ℓ ( v ) ( W i ; β 0 D , v ) satisfies
N ( ϑ ^ ( v ) − ϑ 0 ( v ) ) = 1 N ∑ i = 1 N φ ϑ , i ( v ) + o p ( 1 ) ⟶ d N ( 0 , Σ ϑ ( v ) ) . (37) \sqrt{N}(\widehat{\vartheta}^{(v)}-\vartheta^{(v)}_0)=\frac{1}{\sqrt{N}}\sum_{i=1}^{N}\varphi^{(v)}_{\vartheta,i}+o_p(1)\overset{d}{\longrightarrow}N(0,\boldsymbol{\Sigma}^{(v)}_\vartheta). \tag*{(37)} N ( ϑ ( v ) − ϑ 0 ( v ) ) = N 1 i = 1 ∑ N φ ϑ , i ( v ) + o p ( 1 ) ⟶ d N ( 0 , Σ ϑ ( v ) ) . (37) The covariance matrix Σ ϑ ( v ) \boldsymbol{\Sigma}^{(v)}_\vartheta Σ ϑ ( v ) may be singular when effects linked by exact decompositions are stacked together.
Under the vector analogues of the additional conditions in Theorems A2 and 3, the corresponding analytical covariance estimators are consistent. A cross-sectional bootstrap can be implemented by resampling complete vector trajectories and repeating the full procedure, but no separate bootstrap-consistency result is asserted here. In conclusion, for fixed q M q_M q M , the extension requires only fixed-dimensional stacking and the associated rank condition.
Discussion of a growing mediator dimension
The preceding subsection keeps the mediator dimension q M q_M q M fixed. To formulate a high-dimensional extension precisely, consider a sequence of panel models indexed by the cross-sectional sample size N N N . In the N N N th model, let
M i t , N = ( M i t , 1 , N , … , M i t , q M , N , N ) ′ ∈ R q M , N , q M , N ⟶ ∞ \mathbf{M}_{it,N} = \left(M_{it,1,N},\ldots,M_{it,q_{M,N},N}\right)^\prime\in\mathbb{R}^{q_{M,N}}, \qquad q_{M,N} \longrightarrow\infty M i t , N = ( M i t , 1 , N , … , M i t , q M , N , N ) ′ ∈ R q M , N , q M , N ⟶ ∞
where q M , N q_{M,N} q M , N is the number of mediator coordinates observed at sample size N N N . The mediator histories and their counterfactual versions are defined by stacking M i t , N \mathbf{M}_{it,N} M i t , N over time as in the fixed-dimensional case. For each N N N , the joint effects in (A.1)–(A.3) remain well defined, and the decomposition of the total effect into natural direct and indirect effects remains exact. These effects nevertheless form a sequence, such as NIE t , N ( v ) \operatorname{NIE}^{(v)}_{t,N} NIE t , N ( v ) , because the mediator intervention changes with N N N . If the growing vector is regarded as an approximation to an underlying infinite-dimensional mediator, a fixed limiting effect must be defined separately, and the approximation error must be negligible at the relevant inferential scale.
Identification becomes more demanding as the mediator dimension grows. The vector version of SCIA must concern the current mediator vector jointly, conditional on the relevant treatment and mediator histories; coordinatewise conditional-independence statements are not sufficient in general. The relevant-support condition must likewise cover the joint counterfactual mediator histories entering the natural effects. For continuous mediators, such joint overlap can deteriorate rapidly with q M , N q_{M,N} q M , N , while strong dependence or near-collinearity among mediator coordinates may make some mediated directions weakly identified. A high-dimensional extension would therefore require joint identification and support conditions that remain sufficiently informative along the sequence of models.
The growth of q M , N q_{M,N} q M , N does not by itself imply a high-dimensional structural problem. If the mediator vector enters the model only through a fixed number of known summaries or a common fixed-dimensional parameterization, the preceding analysis can essentially be applied after reparameterization. The difficult case is the one in which the mediator-related dictionaries and coefficient vectors also grow. A schematic extension of the partially linear model is
Y i t ( d ˉ t , m ˉ t , N ) = T Y , N ( d ˉ t − L : t ; m ˉ t − L : t , N , X ˉ i , t − L : t ) ′ θ 0 , N + f 0 , N ( X ˉ i , t − L : t ) + α i Y + λ t Y + ε i t Y , Y_{it}(\bar{d}_{t},\bar{m}_{t,N})=\mathcal{T}_{Y,N}(\bar{d}_{t-L:t};\bar{m}_{t-L:t,N},\bar{X}_{i,t-L:t})^{\prime}\theta_{0,N}+f_{0,N}(\bar{X}_{i,t-L:t})+\alpha_{i}^{Y}+\lambda_{t}^{Y}+\varepsilon_{it}^{Y}, Y i t ( d ˉ t , m ˉ t , N ) = T Y , N ( d ˉ t − L : t ; m ˉ t − L : t , N , X ˉ i , t − L : t ) ′ θ 0 , N + f 0 , N ( X ˉ i , t − L : t ) + α i Y + λ t Y + ε i t Y ,
M i t , N ( d ˉ t ) = T M , N ( d ˉ t − L : t , X ˉ i , t − L : t ) γ 0 , N + g 0 , N ( X ˉ i , t − L : t ) + α i , N M + λ t , N M + ε i t , N M . M_{it,N}(\bar{d}_{t})=\mathcal{T}_{M,N}(\bar{d}_{t-L:t},\bar{X}_{i,t-L:t})\gamma_{0,N}+g_{0,N}(\bar{X}_{i,t-L:t})+\alpha_{i,N}^{M}+\lambda_{t,N}^{M}+\varepsilon_{it,N}^{M}. M i t , N ( d ˉ t ) = T M , N ( d ˉ t − L : t , X ˉ i , t − L : t ) γ 0 , N + g 0 , N ( X ˉ i , t − L : t ) + α i , N M + λ t , N M + ε i t , N M .
where T Y , N ∈ R s Y , N \mathcal{T}_{Y,N}\in\mathbb{R}^{s_{Y,N}} T Y , N ∈ R s Y , N , θ 0 , N ∈ R s Y , N \theta_{0,N}\in\mathbb{R}^{s_{Y,N}} θ 0 , N ∈ R s Y , N , T M , N ∈ R q M , N × s M , N \mathcal{T}_{M,N}\in\mathbb{R}^{q_{M,N}\times s_{M,N}} T M , N ∈ R q M , N × s M , N , and γ 0 , N ∈ R s M , N \gamma_{0,N}\in\mathbb{R}^{s_{M,N}} γ 0 , N ∈ R s M , N . A genuinely high-dimensional specification allows s Y , N s_{Y,N} s Y , N , s M , N s_{M,N} s M , N , or both to increase with N N N . Since unrestricted inclusion of all mediator main effects, lags, and interactions would lead to explosive dictionary growth, some substantively defensible low-complexity structure is essential. Possible examples include approximate sparsity or group sparsity, shared structure across mediator equations, a low-rank representation, or dependence on a small number of mediator summaries.
Even a simple linear model illustrates the inferential difficulty. Suppose, only for illustration, that the outcome depends on the mediator only through the contemporaneous linear term b 0 , N ′ m t , N b_{0,N}^{\prime}m_{t,N} b 0 , N ′ m t , N , with no lagged mediator terms or treatment–mediator interactions, where b 0 , N ∈ R q M , N b_{0,N}\in\mathbb{R}^{q_{M,N}} b 0 , N ∈ R q M , N . Define
Δ M , t , N ( d ˉ t , d ˉ t ∗ ) : = E { M i t , N ( d ˉ t ) − M i t , N ( d ˉ t ∗ ) } . \Delta_{M,t,N}(\bar{d}_{t},\bar{d}_{t}^{*}):=\mathbb{E}\left\{M_{it,N}(\bar{d}_{t})-M_{it,N}(\bar{d}_{t}^{*})\right\}. Δ M , t , N ( d ˉ t , d ˉ t ∗ ) := E { M i t , N ( d ˉ t ) − M i t , N ( d ˉ t ∗ ) } .
The joint natural indirect effect is then
b 0 , N ′ Δ M , t , N ( d ˉ t , d ˉ t ∗ ) . b_{0,N}^{\prime}\Delta_{M,t,N}(\bar{d}_{t},\bar{d}_{t}^{*}). b 0 , N ′ Δ M , t , N ( d ˉ t , d ˉ t ∗ ) .
Thus, the target is a bilinear functional of two high-dimensional objects. Screening only by outcome prediction or only by treatment–mediator association is not aligned with this target, and shrinkage bias in either component can produce nonnegligible bias in their plug-in inner product. Nonlinear mediator terms, lags, and treatment–mediator interactions make the relevant low-complexity structure still more target dependent.
The Neyman orthogonality used in the main text controls estimation errors in the nuisance functions when the structural parameter is fixed dimensional; it does not automatically remove regularization bias from the growing vectors θ 0 , N \theta_{0,N} θ 0 , N and γ 0 , N \gamma_{0,N} γ 0 , N . A plausible route would combine regularized moment estimation with a second, target-specific debiasing step. Writing β 0 , N = ( θ 0 , N ′ , γ 0 , N ′ ) ′ \beta_{0,N}=(\theta_{0,N}^{\prime},\gamma_{0,N}^{\prime})^{\prime} β 0 , N = ( θ 0 , N ′ , γ 0 , N ′ ) ′ and ϑ 0 , N = E { ℓ N ( W i ; β 0 , N ) } \vartheta_{0,N}=\mathbb{E}\{\ell_N(W_i;\beta_{0,N})\} ϑ 0 , N = E { ℓ N ( W i ; β 0 , N )} for a scalar causal effect, one would seek a loading vector a 0 , N a_{0,N} a 0 , N satisfying the schematic orthogonality condition
∂ ∂ β ′ E { ℓ N ( W i ; β ) − a 0 , N ′ ψ N ( W i ; η 0 , N , β ) } ∣ β = β 0 , N = 0 , \left.\frac{\partial}{\partial\beta^{\prime}}\mathbb{E}\left\{\ell_N(W_i;\beta)-a_{0,N}^{\prime}\psi_N(W_i;\eta_{0,N},\beta)\right\}\right|_{\beta=\beta_{0,N}}=0, ∂ β ′ ∂ E { ℓ N ( W i ; β ) − a 0 , N ′ ψ N ( W i ; η 0 , N , β ) } β = β 0 , N = 0 ,
where ψ N \psi_N ψ N is the moment vector and η 0 , N \eta_{0,N} η 0 , N collects the nuisance functions. Such a construction would require the target derivative to be represented by the moment Jacobian and the loading a 0 , N a_{0,N} a 0 , N to admit an estimable low-complexity representation. Cross-fitting alone does not provide this additional orthogonality.
The panel structure adds further complications. The mediator equations, nuisance functions, and auxiliary-fold averages used to remove the vector of time effects must be controlled uniformly over q M , N q_{M,N} q M , N coordinates. Coordinatewise consistency is insufficient when the final score aggregates many mediator components, particularly under strong cross-coordinate dependence. The instrument and moment dimensions may also increase, making an unrestricted inverse of the sample moment covariance matrix unstable or undefined. A feasible procedure would therefore require a restricted moment set or a structured and regularized weighting scheme, together with appropriate identification conditions for the penalized moment problem. The structural complexity, nuisance-estimation errors, and approximation errors would all have to grow slowly enough for their combined contribution to be negligible relative to the sampling fluctuation of the target.
Finally, the causal target must remain well scaled. An aggregate indirect effect that contains nonnegligible contributions from an increasing number of mediators may diverge, vanish, or require a normalization different from the usual N \sqrt{N} N scale. If a growing collection of mediator-specific effects is reported, simultaneous inference and multiplicity control are also necessary. Selecting a small subset of mediators and then applying the fixed-dimensional procedure is not sufficient in general: sample splitting removes dependence created by selection, but it does not eliminate bias from omitted mediated pathways. Cross-sectional high-dimensional mediation methods, such as Wei et al. [19 ] , illustrate the need for structured regularization and debiasing, while the dynamic histories, two-way fixed effects, and auxiliary-fold construction considered here create additional panel-specific issues.
These considerations show that an unrestricted growing mediator vector is not a mechanical extension of the present framework. A complete treatment would need to combine uniform identification of the joint mediator intervention, substantively justified low-complexity structure, regularized estimation of the growing panel system, target-specific debiasing, and appropriately scaled inference. We leave this development to future research.
Calculation of Causal Effects
Suppose
τ Y ( d ˉ t − L : t , m ˉ t − L : t , X ˉ i , t − L : t ) = ( d t , d t − 1 , d t 2 , d t X i t 1 , m t , d t m t , m t X i t 2 ) ′ \tau_Y\left(\bar{d}_{t-L:t},\bar{m}_{t-L:t},\bar{X}_{i,t-L:t}\right)=\left(d_t,d_{t-1},d_t^2,d_tX_{it1},m_t,d_tm_t,m_tX_{it2}\right)^{\prime} τ Y ( d ˉ t − L : t , m ˉ t − L : t , X ˉ i , t − L : t ) = ( d t , d t − 1 , d t 2 , d t X i t 1 , m t , d t m t , m t X i t 2 ) ′
and
τ M ( d ˉ t − L : t , X ˉ t − L : t ) = ( d t , d t − 1 , d t 2 , d t X i t 3 ) ′ . \tau_M\left(\bar{d}_{t-L:t},\bar{X}_{t-L:t}\right)=\left(d_t,d_{t-1},d_t^2,d_tX_{it3}\right)^{\prime}. τ M ( d ˉ t − L : t , X ˉ t − L : t ) = ( d t , d t − 1 , d t 2 , d t X i t 3 ) ′ .
Write θ 0 = ( θ 01 , … , θ 07 ) ′ \theta_0 = (\theta_{01},\ldots,\theta_{07})^\prime θ 0 = ( θ 01 , … , θ 07 ) ′ and γ 0 = ( γ 01 , … , γ 04 ) ′ \gamma_0 = (\gamma_{01},\ldots,\gamma_{04})^\prime γ 0 = ( γ 01 , … , γ 04 ) ′ , and consider two treatment histories that differ only in period t t t : d ˉ t = ( d t − 1 ′ , d t ) ′ \bar d_t = (d_{t-1}^\prime,d_t)^\prime d ˉ t = ( d t − 1 ′ , d t ) ′ and d ˉ t ∗ = ( d t − 1 ′ , d t ∗ ) ′ \bar d_t^* = (d_{t-1}^\prime,d_t^*)^\prime d ˉ t ∗ = ( d t − 1 ′ , d t ∗ ) ′ . Since
E { M i t ( d ˉ t ∗ ) } − E ( M i t ) = E [ τ M ( d ˉ t − L : t ∗ , X ˉ i , t − L : t ) ′ γ 0 − τ M ( D ˉ i , t − L : t , X ˉ i , t − L : t ) ′ γ 0 ] . \mathrm{E}\{M_{it}(\bar d_t^*)\}-\mathrm{E}(M_{it})=\mathrm{E}\left[\tau_M(\bar d_{t-L:t}^*,\bar X_{i,t-L:t})^\prime\gamma_0-\tau_M(\bar D_{i,t-L:t},\bar X_{i,t-L:t})^\prime\gamma_0\right]. E { M i t ( d ˉ t ∗ )} − E ( M i t ) = E [ τ M ( d ˉ t − L : t ∗ , X ˉ i , t − L : t ) ′ γ 0 − τ M ( D ˉ i , t − L : t , X ˉ i , t − L : t ) ′ γ 0 ] .
define
μ M , t ( d ˉ t ∗ ) : = E { M i t ( d ˉ t ∗ ) } = E ( M i t ) + γ 01 { d t ∗ − E ( D i t ) } + γ 02 { d t − 1 − E ( D i , t − 1 ) } + γ 03 { ( d t ∗ ) 2 − E ( D i t 2 ) } + γ 04 { d t ∗ E ( X i t 3 ) − E ( D i t X i t 3 ) } . \mu_{M,t}(\bar d_t^*) := \mathrm{E}\{M_{it}(\bar d_t^*)\} = \mathrm{E}(M_{it})+\gamma_{01}\{d_t^*-\mathrm{E}(D_{it})\}+\gamma_{02}\{d_{t-1}-\mathrm{E}(D_{i,t-1})\}
+\gamma_{03}\{(d_t^*)^2-\mathrm{E}(D_{it}^2)\}+\gamma_{04}\{d_t^*\mathrm{E}(X_{it3})-\mathrm{E}(D_{it}X_{it3})\}. μ M , t ( d ˉ t ∗ ) := E { M i t ( d ˉ t ∗ )} = E ( M i t ) + γ 01 { d t ∗ − E ( D i t )} + γ 02 { d t − 1 − E ( D i , t − 1 )} + γ 03 {( d t ∗ ) 2 − E ( D i t 2 )} + γ 04 { d t ∗ E ( X i t 3 ) − E ( D i t X i t 3 )} .
Then, for any prespecified mediator history m ˉ t \bar m_t m ˉ t ,
C D E t ( d ˉ t , d ˉ t ∗ ; m ˉ t ) = ( d t − d t ∗ ) { θ 01 + ( d t + d t ∗ ) θ 03 + E ( X i t 1 ) θ 04 + m t θ 06 } . \mathrm{CDE}_t(\bar d_t,\bar d_t^*;\bar m_t)=(d_t-d_t^*)\{\theta_{01}+(d_t+d_t^*)\theta_{03}+\mathrm{E}(X_{it1})\theta_{04}+m_t\theta_{06}\}. CDE t ( d ˉ t , d ˉ t ∗ ; m ˉ t ) = ( d t − d t ∗ ) { θ 01 + ( d t + d t ∗ ) θ 03 + E ( X i t 1 ) θ 04 + m t θ 06 } .
N D E t ( d ˉ t , d ˉ t ∗ ) = ( d t − d t ∗ ) { θ 01 + ( d t + d t ∗ ) θ 03 + E ( X i t 1 ) θ 04 + μ M , t ( d ˉ t ∗ ) θ 06 } . \mathrm{NDE}_t(\bar d_t,\bar d_t^*)=(d_t-d_t^*)\{\theta_{01}+(d_t+d_t^*)\theta_{03}+\mathrm{E}(X_{it1})\theta_{04}+\mu_{M,t}(\bar d_t^*)\theta_{06}\}. NDE t ( d ˉ t , d ˉ t ∗ ) = ( d t − d t ∗ ) { θ 01 + ( d t + d t ∗ ) θ 03 + E ( X i t 1 ) θ 04 + μ M , t ( d ˉ t ∗ ) θ 06 } .
For derivatives with respect to the current treatment,
C D D t , t ( d ˉ t , m ˉ t ) = θ 01 + 2 d t θ 03 + E ( X i t 1 ) θ 04 + m t θ 06 , \mathrm{CDD}_{t,t}(\bar d_t,\bar m_t)=\theta_{01}+2d_t\theta_{03}+\mathrm{E}(X_{it1})\theta_{04}+m_t\theta_{06}, CDD t , t ( d ˉ t , m ˉ t ) = θ 01 + 2 d t θ 03 + E ( X i t 1 ) θ 04 + m t θ 06 ,
N D D t , t ( d ˉ t ) = θ 01 + 2 d t θ 03 + E ( X i t 1 ) θ 04 + μ M , t ( d ˉ t ∗ ) θ 06 . \mathrm{NDD}_{t,t}(\bar d_t)=\theta_{01}+2d_t\theta_{03}+\mathrm{E}(X_{it1})\theta_{04}+\mu_{M,t}(\bar d_t^*)\theta_{06}. NDD t , t ( d ˉ t ) = θ 01 + 2 d t θ 03 + E ( X i t 1 ) θ 04 + μ M , t ( d ˉ t ∗ ) θ 06 .
Asymptotic Theory for the DML–GMM Estimator
This appendix gives the complete regularity conditions and limit theory for the structural estimator β ^ 0 D \widehat{\beta}_0^D β 0 D used in § 4 . We maintain the cross-sectional sampling condition (15) , the fixed-T T T asymptotic framework described there, and the observed-data moment restrictions in (4)–(6). The analysis below also makes explicit why auxiliary-fold demeaning does not affect the first-order distribution.
For notational convenience, define Δ ρ 0 , i t = Δ τ M , i t ′ γ 0 + Δ g 0 , i t \Delta\rho_{0,it}=\Delta\tau_{M,it}^\prime\gamma_0+\Delta g_{0,it} Δ ρ 0 , i t = Δ τ M , i t ′ γ 0 + Δ g 0 , i t , Δ ρ ^ 0 k , i t = Δ τ ^ M , i t ′ γ ~ k + Δ g ^ 0 k , i t \Delta\widehat{\rho}_{0k,it}=\Delta\widehat{\tau}_{M,it}^\prime\widetilde{\gamma}_k+\Delta\widehat{g}_{0k,it} Δ ρ 0 k , i t = Δ τ M , i t ′ γ k + Δ g 0 k , i t . Define their starred versions by (8); hence, Δ ρ ^ 0 k , i t ∗ : = Δ ρ ^ 0 k , i t − 1 ∣ F k ′ ∣ ∑ j ∈ F k ′ Δ ρ ^ 0 k , j t \Delta\widehat{\rho}_{0k,it}^*:=\Delta\widehat{\rho}_{0k,it}-\frac{1}{|\mathcal{F}_{k'}|}\sum_{j\in\mathcal{F}_{k'}}\Delta\widehat{\rho}_{0k,jt} Δ ρ 0 k , i t ∗ := Δ ρ 0 k , i t − ∣ F k ′ ∣ 1 ∑ j ∈ F k ′ Δ ρ 0 k , j t , with Δ ρ 0 , i t ∗ \Delta\rho_{0,it}^* Δ ρ 0 , i t ∗ defined analogously. Thus, Δ M i p ∗ − Δ ρ ^ 0 k , i p ∗ = U ^ i p , k M ( γ ~ k ) \Delta M_{ip}^*-\Delta\widehat{\rho}_{0k,ip}^*=\widehat{U}_{ip,k}^M(\widetilde{\gamma}_k) Δ M i p ∗ − Δ ρ 0 k , i p ∗ = U i p , k M ( γ k ) .
For t = 3 , … , T t = 3,\ldots,T t = 3 , … , T , write
B i t Y : = ( Δ D i 2 , … , Δ D i , t − 1 , Δ M i 2 , … , Δ M i , t − 1 ) ′ , B_{it}^{Y} := (\Delta D_{i2},\ldots,\Delta D_{i,t-1},\Delta M_{i2},\ldots,\Delta M_{i,t-1})', B i t Y := ( Δ D i 2 , … , Δ D i , t − 1 , Δ M i 2 , … , Δ M i , t − 1 ) ′ ,
B i t M : = ( Δ D i 2 , … , Δ D i , t − 1 ) ′ , B_{it}^{M} := (\Delta D_{i2},\ldots,\Delta D_{i,t-1})', B i t M := ( Δ D i 2 , … , Δ D i , t − 1 ) ′ ,
C i t Y ( h , ρ ) : = ( − Δ h i 2 , … , − Δ h i , t − 1 , − Δ ρ i 2 , … , − Δ ρ i , t − 1 ) ′ , C_{it}^{Y}(h,\rho) := (-\Delta h_{i2},\ldots,-\Delta h_{i,t-1},-\Delta\rho_{i2},\ldots,-\Delta\rho_{i,t-1})', C i t Y ( h , ρ ) := ( − Δ h i 2 , … , − Δ h i , t − 1 , − Δ ρ i 2 , … , − Δ ρ i , t − 1 ) ′ ,
C i t M ( h ) : = ( − Δ h i 2 , … , − Δ h i , t − 1 ) ′ . C_{it}^{M}(h) := (-\Delta h_{i2},\ldots,-\Delta h_{i,t-1})'. C i t M ( h ) := ( − Δ h i 2 , … , − Δ h i , t − 1 ) ′ .
A superscript ∗ * ∗ on these vectors means that every component is transformed at its own period according to (8); for example,
B i t Y ∗ : = ( Δ D i 2 ∗ , … , Δ D i , t − 1 ∗ , Δ M i 2 ∗ , … , Δ M i , t − 1 ∗ ) ′ , B_{it}^{Y*} := (\Delta D_{i2}^{*},\ldots,\Delta D_{i,t-1}^{*},\Delta M_{i2}^{*},\ldots,\Delta M_{i,t-1}^{*})', B i t Y ∗ := ( Δ D i 2 ∗ , … , Δ D i , t − 1 ∗ , Δ M i 2 ∗ , … , Δ M i , t − 1 ∗ ) ′ ,
C i t Y ∗ ( h , ρ ) : = ( − Δ h i 2 ∗ , … , − Δ h i , t − 1 ∗ , − Δ ρ i 2 ∗ , … , − Δ ρ i , t − 1 ∗ ) ′ . C_{it}^{Y*}(h,\rho) := (-\Delta h_{i2}^{*},\ldots,-\Delta h_{i,t-1}^{*},-\Delta\rho_{i2}^{*},\ldots,-\Delta\rho_{i,t-1}^{*})'. C i t Y ∗ ( h , ρ ) := ( − Δ h i 2 ∗ , … , − Δ h i , t − 1 ∗ , − Δ ρ i 2 ∗ , … , − Δ ρ i , t − 1 ∗ ) ′ .
with B i t M ∗ B_{it}^{M*} B i t M ∗ and C i t M ∗ ( h ) C_{it}^{M*}(h) C i t M ∗ ( h ) defined analogously. Let B i q : = Diag ( B i 3 q , … , B i T q ) B_i^q := \operatorname{Diag}(B_{i3}^q,\ldots,B_{iT}^q) B i q := Diag ( B i 3 q , … , B i T q ) for q ∈ { Y , M } q \in\{Y,M\} q ∈ { Y , M } , and define C i Y ( h , ρ ) C_i^Y(h,\rho) C i Y ( h , ρ ) and C i M ( h ) C_i^M(h) C i M ( h ) analogously; their starred versions are formed from the corresponding starred blocks. The residual vectors from periods 3 , … , T 3,\ldots,T 3 , … , T are
ε Y ( W i , f , θ ) : = ( U i 3 Y ( f , θ ) , … , U i T Y ( f , θ ) ) ′ , ε M ( W i , g , γ ) : = ( U i 3 M ( g , γ ) , … , U i T M ( g , γ ) ) ′ . \varepsilon^Y(W_i,f,\theta) := (U_{i3}^Y(f,\theta),\ldots,U_{iT}^Y(f,\theta))',
\qquad
\varepsilon^M(W_i,g,\gamma) := (U_{i3}^M(g,\gamma),\ldots,U_{iT}^M(g,\gamma))'. ε Y ( W i , f , θ ) := ( U i 3 Y ( f , θ ) , … , U i T Y ( f , θ ) ) ′ , ε M ( W i , g , γ ) := ( U i 3 M ( g , γ ) , … , U i T M ( g , γ ) ) ′ .
For η = ( f , g , h , ρ ) \eta=(f,g,h,\rho) η = ( f , g , h , ρ ) and β = ( θ ′ , γ ′ ) ′ \beta=(\theta',\gamma')' β = ( θ ′ , γ ′ ) ′ , define
m ( W i ; f , g , β ) : = ( B i Y ∗ ε Y ( W i , f , θ ) B i M ∗ ε M ( W i , g , γ ) ) , ϕ ( W i ; f , g , h , ρ , β ) : = ( C i Y ∗ ( h , ρ ) ε Y ( W i , f , θ ) C i M ∗ ( h ) ε M ( W i , g , γ ) ) , m(W_i;f,g,\beta) :=
\begin{pmatrix}
B_i^{Y*}\varepsilon^Y(W_i,f,\theta)\\
B_i^{M*}\varepsilon^M(W_i,g,\gamma)
\end{pmatrix},
\qquad
\phi(W_i;f,g,h,\rho,\beta) :=
\begin{pmatrix}
C_i^{Y*}(h,\rho)\varepsilon^Y(W_i,f,\theta)\\
C_i^{M*}(h)\varepsilon^M(W_i,g,\gamma)
\end{pmatrix}, m ( W i ; f , g , β ) := ( B i Y ∗ ε Y ( W i , f , θ ) B i M ∗ ε M ( W i , g , γ ) ) , ϕ ( W i ; f , g , h , ρ , β ) := ( C i Y ∗ ( h , ρ ) ε Y ( W i , f , θ ) C i M ∗ ( h ) ε M ( W i , g , γ ) ) ,
ψ ( W i ; η , β ) : = m ( W i ; f , g , β ) + ϕ ( W i ; f , g , h , ρ , β ) . \psi(W_i;\eta,\beta) := m(W_i;f,g,\beta)+\phi(W_i;f,g,h,\rho,\beta). ψ ( W i ; η , β ) := m ( W i ; f , g , β ) + ϕ ( W i ; f , g , h , ρ , β ) .
Then ψ ^ i k ( β ) \widehat{\psi}_i^k(\beta) ψ i k ( β ) in (12) satisfies ψ ^ i k ( β ) = ψ ( W i ; η ^ k , β ) \widehat{\psi}_i^k(\beta)=\psi(W_i;\widehat{\eta}_k,\beta) ψ i k ( β ) = ψ ( W i ; η k , β ) for i ∈ I k i\in\mathcal{I}_k i ∈ I k , where η 0 : = ( f 0 , g 0 , h 0 , ρ 0 ) \eta_0:=(f_0,g_0,h_0,\rho_0) η 0 := ( f 0 , g 0 , h 0 , ρ 0 ) ,
η ^ k : = ( f ^ 0 k , g ^ 0 k , h ^ 0 k , ρ ^ 0 k ) . \widehat{\eta}_k := (\widehat{f}_{0k},\widehat{g}_{0k},\widehat{h}_{0k},\widehat{\rho}_{0k}). η k := ( f 0 k , g 0 k , h 0 k , ρ 0 k ) .
For t = 3 , … , T t=3,\ldots,T t = 3 , … , T , define the uncentered innovation instruments
A i t Y : = ( Δ ε i 2 D , … , Δ ε i , t − 1 D , Δ ε i 2 M , … , Δ ε i , t − 1 M ) ′ , A i t M : = ( Δ ε i 2 D , … , Δ ε i , t − 1 D ) ′ , A_{it}^{Y}:=(\Delta\varepsilon_{i2}^{D},\ldots,\Delta\varepsilon_{i,t-1}^{D},\Delta\varepsilon_{i2}^{M},\ldots,\Delta\varepsilon_{i,t-1}^{M})',
\qquad
A_{it}^{M}:=(\Delta\varepsilon_{i2}^{D},\ldots,\Delta\varepsilon_{i,t-1}^{D})', A i t Y := ( Δ ε i 2 D , … , Δ ε i , t − 1 D , Δ ε i 2 M , … , Δ ε i , t − 1 M ) ′ , A i t M := ( Δ ε i 2 D , … , Δ ε i , t − 1 D ) ′ ,
and let A i q : = Diag ( A i 3 q , … , A i T q ) A_i^q := \operatorname{Diag}(A_{i3}^q,\ldots,A_{iT}^q) A i q := Diag ( A i 3 q , … , A i T q ) for q ∈ { Y , M } q \in\{Y,M\} q ∈ { Y , M } . Also set e i Y : = ( Δ ε i 3 Y , … , Δ ε i T Y ) ′ e_i^Y := (\Delta\varepsilon_{i3}^Y,\ldots,\Delta\varepsilon_{iT}^Y)' e i Y := ( Δ ε i 3 Y , … , Δ ε i T Y ) ′ , e i M : = ( Δ ε i 3 M , … , Δ ε i T M ) ′ e_i^M := (\Delta\varepsilon_{i3}^M,\ldots,\Delta\varepsilon_{iT}^M)' e i M := ( Δ ε i 3 M , … , Δ ε i T M ) ′ , T i Y : = ( Δ τ Y , i 3 , … , Δ τ Y , i T ) ′ \mathcal{T}_i^Y := (\Delta\tau_{Y,i3},\ldots,\Delta\tau_{Y,iT})' T i Y := ( Δ τ Y , i 3 , … , Δ τ Y , i T ) ′ , T i M : = ( Δ τ M , i 3 , … , Δ τ M , i T ) ′ \mathcal{T}_i^M := (\Delta\tau_{M,i3},\ldots,\Delta\tau_{M,iT})' T i M := ( Δ τ M , i 3 , … , Δ τ M , i T ) ′ .
ψ ~ i : = ( A i Y e i Y A i M e i M ) , Ψ : = E ( ψ ~ i ψ ~ i ′ ) , G : = − E ( A i Y T i Y 0 0 A i M T i M ) . (38) \widetilde{\psi}_i := \begin{pmatrix} A_i^Y e_i^Y \\ A_i^M e_i^M \end{pmatrix}, \qquad\Psi:= \mathbb{E}(\widetilde{\psi}_i\widetilde{\psi}_i'), \qquad G := -\mathbb{E}\begin{pmatrix} A_i^Y\mathcal{T}_i^Y & 0 \\ 0 & A_i^M\mathcal{T}_i^M \end{pmatrix}. \tag*{(38)} ψ i := ( A i Y e i Y A i M e i M ) , Ψ := E ( ψ i ψ i ′ ) , G := − E ( A i Y T i Y 0 0 A i M T i M ) . (38)
Let F 0 F_0 F 0 denote the distribution of W i W_i W i , and write ∥ a ∥ F 0 , 2 : = { ∫ ∥ a ( w ) ∥ 2 F 0 ( d w ) } 1 / 2 \|a\|_{F_0,2} := \{\int\|a(w)\|^2 F_0(dw)\}^{1/2} ∥ a ∥ F 0 , 2 := { ∫ ∥ a ( w ) ∥ 2 F 0 ( d w ) } 1/2 for a vector- or matrix-valued function a a a , where ∥ ⋅ ∥ \|\cdot\| ∥ ⋅ ∥ is the Euclidean norm for vectors and ∥ ⋅ ∥ F \|\cdot\|_F ∥ ⋅ ∥ F is the Frobenius norm for matrices. Norms involving estimated nuisance functions are understood conditionally on the nuisance-training observations and, for starred quantities, the auxiliary fold.
Assumption A1 (Moment bounds and first-stage consistency) For every fold k k k , the following conditions hold:
(i) E { ∥ ψ ~ i ∥ 2 + ∑ q ∈ { Y , M } ( ∥ A i q ∥ F 2 + ∥ e i q ∥ 2 ) } < ∞ \mathbb{E}\left\{\|\widetilde{\psi}_i\|^2 + \sum_{q\in\{Y,M\}}\left(\|A_i^q\|_F^2 + \|e_i^q\|^2\right)\right\}<\infty E { ∥ ψ i ∥ 2 + ∑ q ∈ { Y , M } ( ∥ A i q ∥ F 2 + ∥ e i q ∥ 2 ) } < ∞ , E ( ∥ T i Y ∥ F + ∥ T i M ∥ F ) < ∞ \mathbb{E}(\|\mathcal{T}_i^Y\|_F+\|\mathcal{T}_i^M\|_F)<\infty E ( ∥ T i Y ∥ F + ∥ T i M ∥ F ) < ∞ .
(ii) ∥ m ( ⋅ ; f ^ 0 k , g ^ 0 k , β 0 ) − m ( ⋅ ; f 0 , g 0 , β 0 ) ∥ F 0 , 2 + ∥ ϕ ( ⋅ ; f ^ 0 k , g ^ 0 k , h 0 , ρ 0 , β 0 ) − ϕ ( ⋅ ; f 0 , g 0 , h 0 , ρ 0 , β 0 ) ∥ F 0 , 2 = o p ( 1 ) \|m(\cdot;\widehat{f}_{0k},\widehat{g}_{0k},\beta_0)-m(\cdot;f_0,g_0,\beta_0)\|_{F_0,2} + \|\phi(\cdot;\widehat{f}_{0k},\widehat{g}_{0k},h_0,\rho_0,\beta_0)-\phi(\cdot;f_0,g_0,h_0,\rho_0,\beta_0)\|_{F_0,2}=o_p(1) ∥ m ( ⋅ ; f 0 k , g 0 k , β 0 ) − m ( ⋅ ; f 0 , g 0 , β 0 ) ∥ F 0 , 2 + ∥ ϕ ( ⋅ ; f 0 k , g 0 k , h 0 , ρ 0 , β 0 ) − ϕ ( ⋅ ; f 0 , g 0 , h 0 , ρ 0 , β 0 ) ∥ F 0 , 2 = o p ( 1 ) .
(iii) ∥ ϕ ( ⋅ ; f 0 , g 0 , h ^ 0 k , ρ ^ 0 k , β 0 ) − ϕ ( ⋅ ; f 0 , g 0 , h 0 , ρ 0 , β 0 ) ∥ F 0 , 2 = o p ( 1 ) \|\phi(\cdot;f_0,g_0,\widehat{h}_{0k},\widehat{\rho}_{0k},\beta_0)-\phi(\cdot;f_0,g_0,h_0,\rho_0,\beta_0)\|_{F_0,2}=o_p(1) ∥ ϕ ( ⋅ ; f 0 , g 0 , h 0 k , ρ 0 k , β 0 ) − ϕ ( ⋅ ; f 0 , g 0 , h 0 , ρ 0 , β 0 ) ∥ F 0 , 2 = o p ( 1 ) .
(iv) ∥ ε Y ( ⋅ , f ^ 0 k , θ 0 ) − ε Y ( ⋅ , f 0 , θ 0 ) ∥ F 0 , 2 + ∥ ε M ( ⋅ , g ^ 0 k , γ 0 ) − ε M ( ⋅ , g 0 , γ 0 ) ∥ F 0 , 2 + ∥ C i Y ( h ^ 0 k , ρ ^ 0 k ) − C i Y ( h 0 , ρ 0 ) ∥ F 0 , 2 + ∥ C i M ( h ^ 0 k ) − C i M ( h 0 ) ∥ F 0 , 2 = o p ( 1 ) \|\varepsilon^Y(\cdot,\widehat{f}_{0k},\theta_0)-\varepsilon^Y(\cdot,f_0,\theta_0)\|_{F_0,2}+\|\varepsilon^M(\cdot,\widehat{g}_{0k},\gamma_0)-\varepsilon^M(\cdot,g_0,\gamma_0)\|_{F_0,2}+\|C_i^Y(\widehat{h}_{0k},\widehat{\rho}_{0k})-C_i^Y(h_0,\rho_0)\|_{F_0,2}+\|C_i^M(\widehat{h}_{0k})-C_i^M(h_0)\|_{F_0,2}=o_p(1) ∥ ε Y ( ⋅ , f 0 k , θ 0 ) − ε Y ( ⋅ , f 0 , θ 0 ) ∥ F 0 , 2 + ∥ ε M ( ⋅ , g 0 k , γ 0 ) − ε M ( ⋅ , g 0 , γ 0 ) ∥ F 0 , 2 + ∥ C i Y ( h 0 k , ρ 0 k ) − C i Y ( h 0 , ρ 0 ) ∥ F 0 , 2 + ∥ C i M ( h 0 k ) − C i M ( h 0 ) ∥ F 0 , 2 = o p ( 1 ) .
Assumption A1 collects the finite-moment and mean-square consistency conditions needed for the score and its instrument and residual components. Since
Δ ρ ^ 0 k , i t − Δ ρ 0 , i t = Δ g ^ 0 k , i t − Δ g 0 , i t + Δ τ M , i t ′ ( γ ~ k − γ 0 ) , \Delta\widehat{\rho}_{0k,it}-\Delta\rho_{0,it}=\Delta\widehat{g}_{0k,it}-\Delta g_{0,it}+\Delta\tau_{M,it}'(\widetilde{\gamma}_k-\gamma_0), Δ ρ 0 k , i t − Δ ρ 0 , i t = Δ g 0 k , i t − Δ g 0 , i t + Δ τ M , i t ′ ( γ k − γ 0 ) ,
its conditions on ρ ^ 0 k \widehat{\rho}_{0k} ρ 0 k concern only the existing estimates g ^ 0 k \widehat{g}_{0k} g 0 k and γ ~ k \widetilde{\gamma}_k γ k .
The remaining second-order term is the product of errors from the equation regressions and from instrument construction. For i ∈ F k i\in\mathcal{F}_k i ∈ F k , define
δ ^ i k ( W i ) : = ϕ ( W i ; f ^ 0 k , g ^ 0 k , h ^ 0 k , ρ ^ 0 k , β 0 ) − ϕ ( W i ; f 0 , g 0 , h ^ 0 k , ρ ^ 0 k , β 0 ) \widehat{\delta}_{ik}(W_i):=\phi(W_i;\widehat{f}_{0k},\widehat{g}_{0k},\widehat{h}_{0k},\widehat{\rho}_{0k},\beta_0)-\phi(W_i;f_0,g_0,\widehat{h}_{0k},\widehat{\rho}_{0k},\beta_0) δ ik ( W i ) := ϕ ( W i ; f 0 k , g 0 k , h 0 k , ρ 0 k , β 0 ) − ϕ ( W i ; f 0 , g 0 , h 0 k , ρ 0 k , β 0 )
− ϕ ( W i ; f ^ 0 k , g ^ 0 k , h 0 , ρ 0 , β 0 ) + ϕ ( W i ; f 0 , g 0 , h 0 , ρ 0 , β 0 ) . -\phi(W_i;\widehat{f}_{0k},\widehat{g}_{0k},h_0,\rho_0,\beta_0)+\phi(W_i;f_0,g_0,h_0,\rho_0,\beta_0). − ϕ ( W i ; f 0 k , g 0 k , h 0 , ρ 0 , β 0 ) + ϕ ( W i ; f 0 , g 0 , h 0 , ρ 0 , β 0 ) .
Assumption A2 (Second-order nuisance remainder). For every k k k , at least one of the following conditions is satisfied: (i) N ∫ δ ^ i k ( w ) F 0 ( d w ) → p 0 \sqrt{N}\int\widehat{\delta}_{ik}(w)F_0(dw)\xrightarrow{p}0 N ∫ δ ik ( w ) F 0 ( d w ) p 0 and ∥ δ ^ i k ∥ F 0 , 2 = o p ( 1 ) \|\widehat{\delta}_{ik}\|_{F_0,2}=o_p(1) ∥ δ ik ∥ F 0 , 2 = o p ( 1 ) ; (ii) N − 1 / 2 ∑ i ∈ F k ∥ δ ^ i k ( W i ) ∥ → p 0 N^{-1/2}\sum_{i\in\mathcal{F}_k}\|\widehat{\delta}_{ik}(W_i)\|\xrightarrow{p}0 N − 1/2 ∑ i ∈ F k ∥ δ ik ( W i ) ∥ p 0 ; (iii) N − 1 / 2 ∑ i ∈ F k δ ^ i k ( W i ) → p 0 N^{-1/2}\sum_{i\in\mathcal{F}_k}\widehat{\delta}_{ik}(W_i)\xrightarrow{p}0 N − 1/2 ∑ i ∈ F k δ ik ( W i ) p 0 .
Define
∥ f ^ 0 k − f 0 ∥ F 0 , 2 : = ∥ ( Δ f ^ 0 k , i 3 − Δ f 0 , i 3 , … , Δ f ^ 0 k , i T − Δ f 0 , i T ) ′ ∥ F 0 , 2 , \|\widehat{f}_{0k}-f_0\|_{F_0,2}:=\|(\Delta\widehat{f}_{0k,i3}-\Delta f_{0,i3},\ldots,\Delta\widehat{f}_{0k,iT}-\Delta f_{0,iT})'\|_{F_0,2}, ∥ f 0 k − f 0 ∥ F 0 , 2 := ∥ ( Δ f 0 k , i 3 − Δ f 0 , i 3 , … , Δ f 0 k , i T − Δ f 0 , i T ) ′ ∥ F 0 , 2 ,
∥ g ^ 0 k − g 0 ∥ F 0 , 2 : = ∥ ( Δ g ^ 0 k , i 2 − Δ g 0 , i 2 , … , Δ g ^ 0 k , i T − Δ g 0 , i T ) ′ ∥ F 0 , 2 , \|\widehat{g}_{0k}-g_0\|_{F_0,2}:=\|(\Delta\widehat{g}_{0k,i2}-\Delta g_{0,i2},\ldots,\Delta\widehat{g}_{0k,iT}-\Delta g_{0,iT})'\|_{F_0,2}, ∥ g 0 k − g 0 ∥ F 0 , 2 := ∥ ( Δ g 0 k , i 2 − Δ g 0 , i 2 , … , Δ g 0 k , i T − Δ g 0 , i T ) ′ ∥ F 0 , 2 ,
∥ h ^ 0 k − h 0 ∥ F 0 , 2 : = ∥ ( Δ h ^ 0 k , i 2 − Δ h 0 , i 2 , … , Δ h ^ 0 k , i , T − 1 − Δ h 0 , i , T − 1 ) ′ ∥ F 0 , 2 , \|\widehat{h}_{0k}-h_0\|_{F_0,2}:=\|(\Delta\widehat{h}_{0k,i2}-\Delta h_{0,i2},\ldots,\Delta\widehat{h}_{0k,i,T-1}-\Delta h_{0,i,T-1})'\|_{F_0,2}, ∥ h 0 k − h 0 ∥ F 0 , 2 := ∥ ( Δ h 0 k , i 2 − Δ h 0 , i 2 , … , Δ h 0 k , i , T − 1 − Δ h 0 , i , T − 1 ) ′ ∥ F 0 , 2 ,
∥ Δ τ M ′ ( γ ~ k − γ 0 ) ∥ F 0 , 2 : = ∥ ( Δ τ M , i 2 ′ ( γ ~ k − γ 0 ) , … , Δ τ M , i , T − 1 ′ ( γ ~ k − γ 0 ) ) ′ ∥ F 0 , 2 . \|\Delta\tau'_M(\widetilde{\gamma}_k-\gamma_0)\|_{F_0,2}:=\|(\Delta\tau'_{M,i2}(\widetilde{\gamma}_k-\gamma_0),\ldots,\Delta\tau'_{M,i,T-1}(\widetilde{\gamma}_k-\gamma_0))'\|_{F_0,2}. ∥Δ τ M ′ ( γ k − γ 0 ) ∥ F 0 , 2 := ∥ ( Δ τ M , i 2 ′ ( γ k − γ 0 ) , … , Δ τ M , i , T − 1 ′ ( γ k − γ 0 ) ) ′ ∥ F 0 , 2 .
Under standard moment bounds, a primitive sufficient condition for Assumption A2 is
∥ f ^ 0 k − f 0 ∥ F 0 , 2 { ∥ h ^ 0 k − h 0 ∥ F 0 , 2 + ∥ g ^ 0 k − g 0 ∥ F 0 , 2 + ∥ Δ τ M ′ ( γ ~ k − γ 0 ) ∥ F 0 , 2 } + ∥ g ^ 0 k − g 0 ∥ F 0 , 2 ∥ h ^ 0 k − h 0 ∥ F 0 , 2 = o p ( N − 1 / 2 ) . \|\widehat{f}_{0k}-f_0\|_{F_0,2}\left\{\|\widehat{h}_{0k}-h_0\|_{F_0,2}+\|\widehat{g}_{0k}-g_0\|_{F_0,2}+\|\Delta\tau'_M(\widetilde{\gamma}_k-\gamma_0)\|_{F_0,2}\right\}+\|\widehat{g}_{0k}-g_0\|_{F_0,2}\|\widehat{h}_{0k}-h_0\|_{F_0,2}=o_p(N^{-1/2}). ∥ f 0 k − f 0 ∥ F 0 , 2 { ∥ h 0 k − h 0 ∥ F 0 , 2 + ∥ g 0 k − g 0 ∥ F 0 , 2 + ∥Δ τ M ′ ( γ k − γ 0 ) ∥ F 0 , 2 } + ∥ g 0 k − g 0 ∥ F 0 , 2 ∥ h 0 k − h 0 ∥ F 0 , 2 = o p ( N − 1/2 ) .
Thus, o p ( N − 1 / 4 ) o_p(N^{-1/4}) o p ( N − 1/4 ) rates for all nuisance components are sufficient but not necessary. If γ ~ k \widetilde{\gamma}_k γ k is root-N N N consistent, its contribution is negligible whenever f ^ 0 k \widehat{f}_{0k} f 0 k is consistent.
The preceding assumptions yield the oracle reduction of the estimated score.
Lemma 1. Suppose (15), (4), (5), and (6) hold. Under Assumptions A1 and A2,
1 N ∑ k = 1 K ∑ i ∈ F k ψ ^ i k ( β 0 ) = 1 N ∑ k = 1 K ∑ i ∈ F k ψ ( W i ; η 0 , β 0 ) + o p ( 1 ) . \frac{1}{\sqrt{N}}\sum_{k=1}^{K}\sum_{i\in\mathcal{F}_k}\widehat{\psi}_i^k(\beta_0)=\frac{1}{\sqrt{N}}\sum_{k=1}^{K}\sum_{i\in\mathcal{F}_k}\psi(W_i;\eta_0,\beta_0)+o_p(1). N 1 k = 1 ∑ K i ∈ F k ∑ ψ i k ( β 0 ) = N 1 k = 1 ∑ K i ∈ F k ∑ ψ ( W i ; η 0 , β 0 ) + o p ( 1 ) .
Assumption A3 (Jacobian stability). The following conditions hold:
(i) E ∥ ∂ ψ ( W i ; η 0 , β 0 ) / ∂ β ′ ∥ F < ∞ \mathrm{E}\|\partial\psi(W_i;\eta_0,\beta_0)/\partial\beta'\|_F<\infty E ∥ ∂ ψ ( W i ; η 0 , β 0 ) / ∂ β ′ ∥ F < ∞ .
(ii) For every k k k ,
∫ ∥ ∂ ψ ( w ; η ^ k , β 0 ) ∂ β ′ − ∂ ψ ( w ; η 0 , β 0 ) ∂ β ′ ∥ F F 0 ( d w ) → p 0. \int\left\|\frac{\partial\psi(w;\widehat{\eta}_k,\beta_0)}{\partial\beta'}-\frac{\partial\psi(w;\eta_0,\beta_0)}{\partial\beta'}\right\|_F F_0(dw)\xrightarrow{p}0. ∫ ∂ β ′ ∂ ψ ( w ; η k , β 0 ) − ∂ β ′ ∂ ψ ( w ; η 0 , β 0 ) F F 0 ( d w ) p 0.
Lemma 2. Under (15), (4), (5), (6), Assumption A 1 ( i ) A1(i) A 1 ( i ) , and Assumption A 3 A3 A 3 , for any possibly data-dependent vector β ˉ ∈ R s Y + s M \bar{\beta} \in\mathbb{R}^{s_Y+s_M} β ˉ ∈ R s Y + s M ,
1 N ∑ k = 1 K ∑ i ∈ F k ∂ ψ ^ i k ( β ˉ ) ∂ β ′ ⟶ p G . \frac{1}{N}\sum_{k=1}^{K}\sum_{i\in\mathcal{F}_k}\frac{\partial\widehat{\psi}_i^k(\bar{\beta})}{\partial\beta'} \overset{p}{\longrightarrow} G. N 1 k = 1 ∑ K i ∈ F k ∑ ∂ β ′ ∂ ψ i k ( β ˉ ) ⟶ p G .
Theorem A1. Suppose (15), (4), (5), and (6) hold, and Assumptions A 1 A1 A 1 –A 3 A3 A 3 are satisfied. If Ω ^ ⟶ p Ω \widehat{\Omega} \overset{p}{\longrightarrow} \Omega Ω ⟶ p Ω , where Ω \Omega Ω is positive definite, and G ′ Ω G G'\Omega G G ′ Ω G is nonsingular, then
N ( β ^ 0 D − β 0 ) = − ( G ′ Ω G ) − 1 G ′ Ω 1 N ∑ i = 1 N ψ ~ i + o p ( 1 ) ⟶ d N ( 0 , V β ) , (39) \sqrt{N}(\widehat{\beta}_0^D-\beta_0)=-(G'\Omega G)^{-1}G'\Omega\frac{1}{\sqrt{N}}\sum_{i=1}^{N}\widetilde{\psi}_i+o_p(1)\overset{d}{\longrightarrow}N(0,V_\beta), \tag*{(39)} N ( β 0 D − β 0 ) = − ( G ′ Ω G ) − 1 G ′ Ω N 1 i = 1 ∑ N ψ i + o p ( 1 ) ⟶ d N ( 0 , V β ) , (39) where V β : = ( G ′ Ω G ) − 1 G ′ Ω Ψ Ω G ( G ′ Ω G ) − 1 V_\beta:= (G'\Omega G)^{-1}G'\Omega\Psi\Omega G(G'\Omega G)^{-1} V β := ( G ′ Ω G ) − 1 G ′ ΩΨΩ G ( G ′ Ω G ) − 1 .
Note that the preliminary coefficients γ ~ k \widetilde{\gamma}_k γ k enter only through ρ ^ 0 k \widehat{\rho}_{0k} ρ 0 k and disappear from the first-order representation by Neyman orthogonality. In addition, joint estimation of θ 0 \theta_0 θ 0 and γ 0 \gamma_0 γ 0 is important because their limiting covariance enters inference for natural direct and indirect effects.
Let ψ ^ i : = ψ ^ i k ( β ^ 0 D ) \widehat{\psi}_i:=\widehat{\psi}_i^k(\widehat{\beta}_0^D) ψ i := ψ i k ( β 0 D ) for i ∈ F k i\in\mathcal{F}_k i ∈ F k and define G ^ : = 1 N ∑ k = 1 K ∑ i ∈ F k ∂ ψ ^ i k ( β ^ 0 D ) ∂ β ′ \widehat{G}:=\frac{1}{N}\sum_{k=1}^{K}\sum_{i\in\mathcal{F}_k}\frac{\partial\widehat{\psi}_i^k(\widehat{\beta}_0^D)}{\partial\beta'} G := N 1 ∑ k = 1 K ∑ i ∈ F k ∂ β ′ ∂ ψ i k ( β 0 D ) , Ψ ^ : = 1 N ∑ k = 1 K ∑ i ∈ F k ψ ^ i ψ ^ i ′ \widehat{\Psi}:=\frac{1}{N}\sum_{k=1}^{K}\sum_{i\in\mathcal{F}_k}\widehat{\psi}_i\widehat{\psi}_i' Ψ := N 1 ∑ k = 1 K ∑ i ∈ F k ψ i ψ i ′ .
A sandwich estimator of the asymptotic variance of N ( β ^ 0 D − β 0 ) \sqrt{N}(\widehat{\beta}_0^D-\beta_0) N ( β 0 D − β 0 ) is
V ^ β : = ( G ^ ′ Ω ^ G ^ ) − 1 G ^ ′ Ω ^ Ψ ^ Ω ^ G ^ ( G ^ ′ Ω ^ G ^ ) − 1 , (40) \widehat{V}_\beta:= (\widehat{G}'\widehat{\Omega}\widehat{G})^{-1}\widehat{G}'\widehat{\Omega}\widehat{\Psi}\widehat{\Omega}\widehat{G}(\widehat{G}'\widehat{\Omega}\widehat{G})^{-1}, \tag*{(40)} V β := ( G ′ Ω G ) − 1 G ′ Ω Ψ Ω G ( G ′ Ω G ) − 1 , (40)
so the estimated covariance matrix of β ^ 0 D \widehat{\beta}_0^D β 0 D is V ^ β / N \widehat{V}_\beta/N V β / N .
The following proposition establishes the consistency of the sandwich variance estimator.
Theorem A2. Suppose the conditions of Theorem A1 hold. In addition, assume that, for every k k k , ∥ ψ ( ⋅ ; η ^ k , β ^ 0 D ) − ψ ( ⋅ ; η ^ k , β 0 ) ∥ F 0 , 2 = o p ( 1 ) \|\psi(\cdot;\widehat{\eta}_k,\widehat{\beta}_0^D)-\psi(\cdot;\widehat{\eta}_k,\beta_0)\|_{F_0,2}=o_p(1) ∥ ψ ( ⋅ ; η k , β 0 D ) − ψ ( ⋅ ; η k , β 0 ) ∥ F 0 , 2 = o p ( 1 ) , ∥ δ ^ i k ∥ F 0 , 2 = o p ( 1 ) \|\widehat{\delta}_{ik}\|_{F_0,2}=o_p(1) ∥ δ ik ∥ F 0 , 2 = o p ( 1 ) . Then Ψ ^ ⟶ p Ψ \widehat{\Psi}\overset{p}{\longrightarrow}\Psi Ψ ⟶ p Ψ , G ^ ⟶ p G \widehat{G}\overset{p}{\longrightarrow}G G ⟶ p G , and V ^ β ⟶ p V β \widehat{V}_\beta\overset{p}{\longrightarrow}V_\beta V β ⟶ p V β .
Supplementary Simulation Results
Baseline data-generating process and implementation details
The baseline design uses N = 1600 N = 1600 N = 1600 individuals, T = 10 T = 10 T = 10 periods, five time-varying covariates, and one lag in each structural dictionary; variables dated before period 1 are set to zero. The outcome and mediator dictionaries are
τ Y ( d ˉ t − 1 : t , m ˉ t − 1 : t , X ˉ i , t − 1 : t ) = ( d t , d t 2 , d t − 1 , d t X i t 3 , m t , m t − 1 ) ′ , \tau_Y(\bar{d}_{t-1:t},\bar{m}_{t-1:t},\bar{X}_{i,t-1:t}) = (d_t,d_t^2,d_{t-1},d_tX_{it3},m_t,m_{t-1})^\prime, τ Y ( d ˉ t − 1 : t , m ˉ t − 1 : t , X ˉ i , t − 1 : t ) = ( d t , d t 2 , d t − 1 , d t X i t 3 , m t , m t − 1 ) ′ ,
τ M ( d ˉ t − 1 : t , X ˉ i , t − 1 : t ) = ( d t , d t 2 , d t − 1 ) ′ . \tau_M(\bar{d}_{t-1:t},\bar{X}_{i,t-1:t}) = (d_t,d_t^2,d_{t-1})^\prime. τ M ( d ˉ t − 1 : t , X ˉ i , t − 1 : t ) = ( d t , d t 2 , d t − 1 ) ′ .
with θ 0 = ( 2 , 0.5 , 2 , 2 , 1 , 0.5 ) ′ \theta_0 = (2,0.5,2,2,1,0.5)^\prime θ 0 = ( 2 , 0.5 , 2 , 2 , 1 , 0.5 ) ′ and γ 0 = ( 1 , 0.5 , 0.5 ) ′ \gamma_0 = (1,0.5,0.5)^\prime γ 0 = ( 1 , 0.5 , 0.5 ) ′ . Thus the stacked structural parameter has nine components.
For each individual, draw mutually independent standard normal variables A i A_i A i , ζ i D \zeta_i^D ζ i D , ζ i M \zeta_i^M ζ i M , ζ i Y \zeta_i^Y ζ i Y , ε i D \varepsilon_i^D ε i D , ε i M \varepsilon_i^M ε i M , ε i Y \varepsilon_i^Y ε i Y , and ν i t j \nu_{itj} ν i t j , j = 1 , … , 5 j = 1,\ldots,5 j = 1 , … , 5 , independently across individuals and periods. Set α i q = A i + ζ i q \alpha_i^q = A_i + \zeta_i^q α i q = A i + ζ i q for q ∈ { D , M , Y } q \in\{D,M,Y\} q ∈ { D , M , Y } , so the three equations share a time-invariant latent factor while retaining equation-specific heterogeneity. The covariates have stationary standard normal marginals and obey
X i 1 j = ν i 1 j , X i t j = 0.5 X i , t − 1 , j + 1 − 0.5 2 ν i t j , t = 2 , … , T . X_{i1j} = \nu_{i1j}, \qquad X_{itj} = 0.5X_{i,t-1,j} + \sqrt{1-0.5^2}\nu_{itj}, \qquad t = 2,\ldots,T. X i 1 j = ν i 1 j , X i t j = 0.5 X i , t − 1 , j + 1 − 0. 5 2 ν i t j , t = 2 , … , T .
The deterministic period effects are λ t Y = sin ( 2 π t / T ) \lambda_t^Y = \sin(2\pi t/T) λ t Y = sin ( 2 π t / T ) and λ t M = λ t D = 0.5 cos ( 2 π t / T ) \lambda_t^M = \lambda_t^D = 0.5\cos(2\pi t/T) λ t M = λ t D = 0.5 cos ( 2 π t / T ) . The nuisance functions are
f 0 ( x ) = ( x 1 2 − 1 ) + { cosh ( x 1 ) − e 1 / 2 } + sin ( 2 x 2 ) + tanh ( 2 x 3 ) + sin ( x 1 x 2 ) , g 0 ( x ) = ( x 1 2 − 1 ) + 2 { cos ( 2 x 2 ) − e − 2 } + sin ( 2 x 4 ) + 2 { e x 5 − e 1 / 2 } , h 0 ( x ) = ( x 1 2 − 1 ) − x 1 + ( x 2 2 − 1 ) + x 3 . (41) \begin{aligned}
f_0(x) &= (x_1^2-1) + \{\cosh(x_1)-e^{1/2}\} + \sin(2x_2) + \tanh(2x_3) + \sin(x_1x_2),\\
g_0(x) &= (x_1^2-1) + 2\{\cos(2x_2)-e^{-2}\} + \sin(2x_4) + 2\{e^{x_5}-e^{1/2}\},\\
h_0(x) &= (x_1^2-1)-x_1+(x_2^2-1)+x_3. \tag*{(41)}
\end{aligned} f 0 ( x ) g 0 ( x ) h 0 ( x ) = ( x 1 2 − 1 ) + { cosh ( x 1 ) − e 1/2 } + sin ( 2 x 2 ) + tanh ( 2 x 3 ) + sin ( x 1 x 2 ) , = ( x 1 2 − 1 ) + 2 { cos ( 2 x 2 ) − e − 2 } + sin ( 2 x 4 ) + 2 { e x 5 − e 1/2 } , = ( x 1 2 − 1 ) − x 1 + ( x 2 2 − 1 ) + x 3 . (41)
Every displayed component is centered under the standard normal marginal distribution.
The functions f 0 f_0 f 0 and g 0 g_0 g 0 deliberately lie outside the finite cubic library used for estimation, whereas h 0 h_0 h 0 lies in its span.
The panel is generated recursively. At t = 1 t = 1 t = 1 , let ε i 1 D = ξ i D \varepsilon^D_{i1} = \xi^D_i ε i 1 D = ξ i D ; for t ≥ 2 t \ge2 t ≥ 2 , let ε i t D = ξ i t D + ε i , t − 1 Y + ε i , t − 1 M \varepsilon^D_{it} = \xi^D_{it} + \varepsilon^Y_{i,t-1} + \varepsilon^M_{i,t-1} ε i t D = ξ i t D + ε i , t − 1 Y + ε i , t − 1 M . Then
D i t = h 0 ( X i t ) + α i D + λ t D + ε i t D , D_{it} = h_0(X_{it}) + \alpha^D_i + \lambda^D_t + \varepsilon^D_{it}, D i t = h 0 ( X i t ) + α i D + λ t D + ε i t D ,
M i t = D i t + 0.5 D i t 2 + 0.5 D i , t − 1 + g 0 ( X i t ) + α i M + λ t M + ε i t M , M_{it} = D_{it} + 0.5D_{it}^2 + 0.5D_{i,t-1} + g_0(X_{it}) + \alpha^M_i + \lambda^M_t + \varepsilon^M_{it}, M i t = D i t + 0.5 D i t 2 + 0.5 D i , t − 1 + g 0 ( X i t ) + α i M + λ t M + ε i t M ,
Y i t = 2 D i t + 0.5 D i t 2 + 2 D i , t − 1 + 2 D i t X i t 3 + M i t + 0.5 M i , t − 1 + f 0 ( X i t ) + α i Y + λ t Y + ε i t Y . Y_{it} = 2D_{it} + 0.5D_{it}^2 + 2D_{i,t-1} + 2D_{it}X_{it3} + M_{it} + 0.5M_{i,t-1} + f_0(X_{it}) + \alpha^Y_i + \lambda^Y_t + \varepsilon^Y_{it}. Y i t = 2 D i t + 0.5 D i t 2 + 2 D i , t − 1 + 2 D i t X i t 3 + M i t + 0.5 M i , t − 1 + f 0 ( X i t ) + α i Y + λ t Y + ε i t Y .
The feedback in ε i t D \varepsilon^D_{it} ε i t D makes treatment respond to the preceding outcome and mediator shocks. Current primitive innovations remain independent of the relevant histories, so the level equations satisfy the conditional moment restrictions used in the paper, but the differenced structural regressors are correlated with differenced innovations. This creates sequential rather than strict exogeneity.
The covariate library contains every monomial of total degree one, two, or three in the five current-period covariates, without an intercept. Its dimension is ( 5 + 3 3 ) − 1 = 55 \binom{5+3}{3} - 1 = 55 ( 3 5 + 3 ) − 1 = 55 .
The code first constructs the structural dictionaries and this covariate basis in levels and then takes first differences. For a nuisance-training sample, every differenced response, structural regressor, basis term, and instrument is demeaned by its training-sample cross-sectional mean separately in each period. Because valid lagged instruments first become available in period 3, the penalized structural first stages use the equations for t = 3 , … , T t = 3, \ldots, T t = 3 , … , T .
The outcome first stage regresses the period-demeaned Δ Y i t \Delta Y_{it} Δ Y i t on the six differenced outcome-dictionary terms and the 55 differenced basis terms. The contemporaneous treatment, squared treatment, treatment–X 3 X_3 X 3 interaction, and mediator terms are treated as endogenous. The excluded instrument set contains the period-demeaned long differences D i , t − 1 − D i 1 D_{i,t-1} - D_{i1} D i , t − 1 − D i 1 , D i , t − 1 2 − D i 1 2 D_{i,t-1}^2 - D_{i1}^2 D i , t − 1 2 − D i 1 2 , M i , t − 1 − M i 1 M_{i,t-1} - M_{i1} M i , t − 1 − M i 1 , and D i , t − 1 X i , t − 1 , 3 − D i 1 X i 1 , 3 D_{i,t-1}X_{i,t-1,3} - D_{i1}X_{i1,3} D i , t − 1 X i , t − 1 , 3 − D i 1 X i 1 , 3 , together with the lagged first differences Δ D i , t − 1 2 \Delta D_{i,t-1}^2 Δ D i , t − 1 2 and Δ ( D i , t − 1 X i , t − 1 , 3 ) \Delta(D_{i,t-1}X_{i,t-1,3}) Δ ( D i , t − 1 X i , t − 1 , 3 ) . The lagged treatment and mediator terms, which are not designated endogenous, and all 55 basis terms are also included in the instrument matrix. The mediator first stage is constructed analogously: it regresses Δ M i t \Delta M_{it} Δ M i t on the three differenced mediator-dictionary terms and the basis, treats the contemporaneous treatment and squared treatment terms as endogenous, and uses D i , t − 1 − D i 1 , t − 1 D_{i,t-1}-D_{i1,t-1} D i , t − 1 − D i 1 , t − 1 , D i , t − 1 2 − D i 1 2 D_{i,t-1}^{2}-D_{i1}^{2} D i , t − 1 2 − D i 1 2 , and Δ D i , t − 1 2 \Delta D_{i,t-1}^{2} Δ D i , t − 1 2 as excluded instruments, along with the lagged treatment term and the basis.
Computationally, the code obtains a QR basis for each instrument matrix, projects the response and designated endogenous columns onto its span, and then fits an ℓ 1 \ell_{1} ℓ 1 -penalized regression without an intercept. All coefficients, including the structural and basis coefficients, are penalized. For an equation with p p p regressors and n o b s n_{\mathrm{obs}} n obs stacked observations, the penalty is 2 log ( 2 p ) / n o b s \sqrt{2\log(2p)}/n_{\mathrm{obs}} 2 log ( 2 p ) / n obs ; the implementation uses glmnet with α = 1 \alpha=1 α = 1 , standardized regressors, and a maximum of 100,000 iterations. The first six outcome coefficients and first three mediator coefficients are not used as final estimates. Instead, the mediator coefficients supply the fold-specific preliminary value γ ~ k \widetilde{\gamma}_{k} γ k , while the estimated basis coefficients generate f ^ 0 k \widehat{f}_{0k} f 0 k and g ^ 0 k \widehat{g}_{0k} g 0 k . The treatment nuisance h 0 h_{0} h 0 is estimated separately by ordinary least squares of the training-sample period-demeaned Δ D i t \Delta D_{it} Δ D i t on the 55 period-demeaned differenced basis terms over t = 2 , … , T t=2,\ldots,T t = 2 , … , T , again without an intercept.
For DML–GMM, the individuals are randomly partitioned into ten equal folds. For target fold F k \mathcal{F}_{k} F k , the cyclic successor F k ′ \mathcal{F}_{k'} F k ′ is used only for period-specific auxiliary means, and the remaining eight folds train the nuisance functions. For every target-fold first difference and fitted nuisance value, the code subtracts the corresponding auxiliary-fold mean. This produces the starred outcomes, dictionaries, and fitted values in Algorithm 1. It then forms the treatment residual U ^ i p , k D = Δ D i p ∗ − Δ h ^ 0 k , i p ∗ \widehat{U}^{D}_{ip,k}=\Delta D^{*}_{ip}-\Delta\widehat{h}^{*}_{0k,ip} U i p , k D = Δ D i p ∗ − Δ h 0 k , i p ∗ and the preliminary mediator residual U ^ i p , k M ( γ ~ k ) = Δ M i p ∗ − Δ τ M , i p ∗ γ ~ k − Δ g ^ 0 k , i p ∗ \widehat{U}^{M}_{ip,k}(\widetilde{\gamma}_{k})=\Delta M^{*}_{ip}-\Delta\tau^{*}_{M,ip}\widetilde{\gamma}_{k}-\Delta\widehat{g}^{*}_{0k,ip} U i p , k M ( γ k ) = Δ M i p ∗ − Δ τ M , i p ∗ γ k − Δ g 0 k , i p ∗ .
For the period-t t t outcome moment, t = 3 , … , T t=3,\ldots,T t = 3 , … , T , the instrument history retains at most the two most recent dates p < t p<t p < t . For each retained p p p , the outcome instrument includes U ^ i p , k D \widehat{U}^{D}_{ip,k} U i p , k D , U ^ i p , k ( γ ^ k ) \widehat{U}_{ip,k}(\widehat{\gamma}_k) U i p , k ( γ k ) , U ^ i p , k D X i p 3 \widehat{U}^{D}_{ip,k}X_{ip3} U i p , k D X i p 3 , and a squared treatment-residual term. Only the squared-residual block is centered and standardized across the combined evaluation sample. Thus the outcome equation contributes four moments at t = 3 t=3 t = 3 and eight in each subsequent period, for a total of 60. The mediator instrument contains the retained treatment residuals and one centered and standardized square of the most recent treatment residual. It contributes two moments at t = 3 t=3 t = 3 and three thereafter, for a total of 23. The 83 moments are stacked jointly for the nine parameters and minimized with the identity weighting matrix. Structural standard errors use the full empirical covariance of the stacked individual score, so cross-equation and cross-period dependence is retained.
Naive–GMM keeps the same differenced equations, 55-term library, penalized structural nuisance learner, history truncation, instrument augmentations, and identity weighting. It differs in three code paths: f ^ 0 \widehat{f}_0 f 0 and g ^ 0 \widehat{g}_0 g 0 are fitted once on all individuals; period demeaning uses the full sample; and the treatment and mediator residual histories in the final instruments are replaced by the corresponding period-demeaned treatment and mediator levels. No separate treatment nuisance is therefore needed for this benchmark.
The level effects are evaluated at t = T t=T t = T for d ˉ T = 1 T \bar{d}_T=\mathbf{1}_T d ˉ T = 1 T versus d T ∗ = 0 T d_T^*=\mathbf{0}_T d T ∗ = 0 T . For each individual, the code computes
ℓ i C D E ( β ) = ℓ i N D E ( β ) = θ 1 + θ 2 + θ 3 + θ 4 X i T 3 , ℓ i N I E ( β ) = ( γ 1 + γ 2 + γ 3 ) ( θ 5 + θ 6 ) , ℓ i T E ( β ) = ℓ i N D E ( β ) + ℓ i N I E ( β ) , ℓ i N D D ( β ) = θ 1 + 2 θ 2 + θ 4 X i T 3 , ℓ i N I D ( β ) = ( γ 1 + 2 γ 2 ) θ 5 , ℓ i T D ( β ) = ℓ i N D D ( β ) + ℓ i N I D ( β ) . \begin{aligned}
\ell_i^{\mathrm{CDE}}(\beta) = \ell_i^{\mathrm{NDE}}(\beta) &= \theta_1+\theta_2+\theta_3+\theta_4X_{iT3},\\
\ell_i^{\mathrm{NIE}}(\beta) &= (\gamma_1+\gamma_2+\gamma_3)(\theta_5+\theta_6),\\
\ell_i^{\mathrm{TE}}(\beta) &= \ell_i^{\mathrm{NDE}}(\beta)+\ell_i^{\mathrm{NIE}}(\beta),\\
\ell_i^{\mathrm{NDD}}(\beta) &= \theta_1+2\theta_2+\theta_4X_{iT3},\\
\ell_i^{\mathrm{NID}}(\beta) &= (\gamma_1+2\gamma_2)\theta_5,\qquad
\ell_i^{\mathrm{TD}}(\beta) = \ell_i^{\mathrm{NDD}}(\beta)+\ell_i^{\mathrm{NID}}(\beta).
\end{aligned} ℓ i CDE ( β ) = ℓ i NDE ( β ) ℓ i NIE ( β ) ℓ i TE ( β ) ℓ i NDD ( β ) ℓ i NID ( β ) = θ 1 + θ 2 + θ 3 + θ 4 X i T 3 , = ( γ 1 + γ 2 + γ 3 ) ( θ 5 + θ 6 ) , = ℓ i NDE ( β ) + ℓ i NIE ( β ) , = θ 1 + 2 θ 2 + θ 4 X i T 3 , = ( γ 1 + 2 γ 2 ) θ 5 , ℓ i TD ( β ) = ℓ i NDD ( β ) + ℓ i NID ( β ) .
The estimated effect is the cross-sectional average of its individual contribution. Its influence function is computed as the centered individual contribution plus the estimated influence function of β ^ 0 D \widehat{\beta}^{D}_0 β 0 D multiplied by the analytic gradient of the effect map. Standard errors are the square roots of the empirical second moments of these influence functions divided by N N N . Each design cell uses 1,000 independent replications, and coverage records whether the resulting two-sided 95% Wald interval contains the corresponding truth in (23) .
Alternative sample sizes
We repeat the baseline experiment of Section D.1 with N = 800 N = 800 N = 800 and N = 3200 N = 3200 N = 3200 , holding T T T , the dictionaries, the data-generating process, the first-stage learner, the number of folds and the number of replications fixed.
Table 3 shows that DML–GMM behaves as the asymptotic theory predicts. Quadrupling N N N divides its Monte Carlo standard deviation by a factor between 0.47 and 0.64, against the 0.5 implied by the N \sqrt{N} N rate; the largest absolute bias falls from 0.0215 to 0.0039 across the nine coefficients and from 0.0576 to 0.0116 across the seven causal effects; and the average estimated standard error stays within 6% of the Monte Carlo dispersion in all thirty-two cells. Coverage is already reliable at N = 800 N = 800 N = 800 , ranging from 0.928 to 0.958.
Table 3. Monte Carlo results under alternative sample sizes
The one cell that falls slightly short is θ D 2 \theta_{D}^{2} θ D 2 at N = 3200 N = 3200 N = 3200 , where coverage is 0.928 while every other cell at that sample size stays between 0.940 and 0.966. Its bias declines far more slowly than the biases of the mediator equation, and the cause is the deliberately misspecified first-stage library rather than the orthogonalization: h 0 h_0 h 0 in (A.16) lies in the span of the 55 monomials, whereas f 0 f_0 f 0 and g 0 g_0 g 0 contain hyperbolic, trigonometric and exponential terms that no cubic dictionary can reproduce. The product condition following Assumption A2 therefore keeps holding for the mediator moment, whose remainder involves ∥ h ^ 0 k − h 0 ∥ F 0 , 2 \lVert\widehat{h}_{0k} - h_0 \rVert_{F_0,2} ∥ h 0 k − h 0 ∥ F 0 , 2 and whose largest bias falls by an order of magnitude, from 0.0215 at N = 800 N = 800 N = 800 to 0.0023 at N = 3200 N = 3200 N = 3200 , but fails in the limit for the outcome moment, whose remainder involves ∥ f ^ 0 k − f 0 ∥ F 0 , 2 ∥ g ^ 0 k − g 0 ∥ F 0 , 2 \lVert\widehat{f}_{0k} - f_0 \rVert_{F_0,2}\lVert\widehat{g}_{0k} - g_0 \rVert_{F_0,2} ∥ f 0 k − f 0 ∥ F 0 , 2 ∥ g 0 k − g 0 ∥ F 0 , 2 and whose leading bias falls only from 0.0060 to 0.0039 while the corresponding standard deviation falls from 0.0190 to 0.0121. OrthogNotes: Each design cell contains 1,000 replications with T = 10 T = 10 T = 10 . Bias is signed, SD is the Monte Carlo standard deviation, ASE is the average estimated standard error, and CP is the coverage probability of the nominal 95% Wald interval. NDE coincides with CDE by construction.
onality removes the first-order effect of first-stage sampling error, not the effect of a first stage that converges to the wrong function.
Naive–GMM does not improve with the sample size and in several respects deteriorates: coverage for γ D t \gamma_{D_t} γ D t is 0.000 at all three sample sizes, coverage for γ D 2 t \gamma_{D_{2t}} γ D 2 t falls from 0.680 to 0.004, and coverage for TE never exceeds 0.036. Two mechanisms are visible. The mediator-equation estimates concentrate at essentially the parametric rate but around a wrong center, so a larger panel only buys shorter intervals that miss the truth more often. The outcome-equation estimates instead disperse far more slowly than N − 1 / 2 N^{-1/2} N − 1/2 , five of their six standard deviations falling by a factor of only 0.63 to 0.91 when N N N quadruples, as expected of an estimation error that is first order in the first-stage error and, without cross-fitting, common to all individuals. Neither defect is a small-sample artifact.
Alternative data-generating process
The second experiment changes the baseline design in Section D.1 in one place only: the nuisance functions (A.16) are replaced by
f 0 ( x ) = ( x 1 2 − 1 ) + ( x 2 2 − 1 ) + 0.2 x 1 3 ∣ x 1 ∣ + 2 x 1 1 + x 1 2 + arcsinh ( x 3 ) + arctan ( x 1 x 2 ) , g 0 ( x ) = ( x 2 2 − 1 ) + 10 { e − x 1 2 − 3 − 1 / 2 } + 2 x 4 1 + x 4 2 + 2 [ { max ( x 5 , 0 ) } 2 − 1 2 ] , h 0 ( x ) = 1.5 ( x 1 2 − 1 ) + ( x 2 2 − 1 ) + ( x 3 2 − 1 ) + x 3 , (42) \begin{aligned}
f_0(x) &= (x_1^2 - 1) + (x_2^2 - 1) + 0.2x_1^3|x_1| + \frac{2x_1}{1+x_1^2} + \operatorname{arcsinh}(x_3) + \arctan(x_1x_2), \\
g_0(x) &= (x_2^2 - 1) + 10\left\{e^{-x_1^2} - 3^{-1/2}\right\} + \frac{2x_4}{1+x_4^2} + 2\left[\{\max(x_5,0)\}^2 - \frac{1}{2}\right], \\
h_0(x) &= 1.5(x_1^2 - 1) + (x_2^2 - 1) + (x_3^2 - 1) + x_3, \tag*{(42)}
\end{aligned} f 0 ( x ) g 0 ( x ) h 0 ( x ) = ( x 1 2 − 1 ) + ( x 2 2 − 1 ) + 0.2 x 1 3 ∣ x 1 ∣ + 1 + x 1 2 2 x 1 + arcsinh ( x 3 ) + arctan ( x 1 x 2 ) , = ( x 2 2 − 1 ) + 10 { e − x 1 2 − 3 − 1/2 } + 1 + x 4 2 2 x 4 + 2 [ { max ( x 5 , 0 ) } 2 − 2 1 ] , = 1.5 ( x 1 2 − 1 ) + ( x 2 2 − 1 ) + ( x 3 2 − 1 ) + x 3 , (42)
each term again having mean zero under the standard normal marginals. All other simulation settings are identical to those in Section D.1. The replacement changes the way the nuisances escape the dictionary used to approximate them but keeps the design adverse. Because the causal estimands are functions of θ 0 \theta_0 θ 0 and γ 0 \gamma_0 γ 0 alone, the true values in (23) continue to apply.
Table 4 reproduces the pattern of the baseline design reported in Table 1 of the main text and of the sample-size experiment in Table 3 . DML–GMM remains centered and correctly sized under the new nuisance functions: its largest absolute bias is 0.0207 across the nine structural parameters and 0.0531 across the seven causal effects, at most 2.1% of the corresponding true value; its average estimated standard errors track the Monte Carlo
Table 4. Monte Carlo results under the alternative data-generating process
Notes: The design differs from the baseline design in Section D.1 only in the nuisance functions, which are given by {(A.17)} instead of {(A.16)}. Each method uses 1,000 replications with N = 1600 N = 1600 N = 1600 and T = 10 T = 10 T = 10 . Bias is signed, SD is the Monte Carlo standard deviation, RMSE is the root mean squared error, ASE is the average estimated standard error, and CP is the coverage probability of the nominal 95% Wald interval. NDE coincides with CDE by construction.
dispersion to within 5% in every one of the sixteen rows; and its coverage ranges from 0.928 to 0.969, against 0.937 to 0.958 in the main design. Relative to Naive–GMM it has the smaller absolute bias for fifteen of the sixteen quantities, the exception being θ M t − 1 \theta_{M_{t-1}} θ M t − 1 , for which both biases are below 0.0001; the coverage closer to nominal for all sixteen; and the smaller root mean squared error for seven of the nine structural parameters and for all seven causal effects, where the reduction ranges from 16% to 87%.
Naive–GMM fails in the same two ways as in § 5 , and here more severely. Its outcome equation stays roughly centered but is far noisier, the standard deviations of the three treatment coefficients and of the contemporaneous mediator coefficient being 2.3 to 6.6 times those of DML–GMM, and its estimated standard errors understate even that dispersion by 19% to 28%, so coverage for those four coefficients runs from 0.834 to 0.903.
The exception is θ D X \theta_{DX} θ D X , whose bias of − 0.0291 -0.0291 − 0.0291 exceeds its own standard deviation and pushes coverage down to 0.610. Its mediator equation is displaced instead: γ ^ D t \widehat{\gamma}_{D_t} γ D t carries a bias of − 0.3924 -0.3924 − 0.3924 , or 39% of the truth, and coverage for γ D t \gamma_{D_t} γ D t , γ D t 2 \gamma_{D_t^2} γ D t 2 and γ D t − 1 \gamma_{D_{t-1}} γ D t − 1 is 0.000, 0.000 and 0.231.
The damage to the causal estimands is again concentrated in the indirect channel: CDE, NDE and NDD keep biases below 0.061, with coverage of 0.895, 0.895 and 0.880, while NIE, TE, NID and TD carry biases of − 0.6145 -0.6145 − 0.6145 , − 0.5547 -0.5547 − 0.5547 , − 0.3720 -0.3720 − 0.3720 and − 0.3118 -0.3118 − 0.3118 with coverage of 0.161, 0.002, 0.388 and 0.016, and the naive standard errors understate the Monte Carlo dispersion of every causal estimand by 25% to 39%. The conclusions of § 5 are therefore not an artifact of the particular nuisance functions used there.
Supplementary Information on the Empirical Application
Empirical estimands and implementation
The two empirical specifications use the same first-stage covariate library. It consists of the 108 monomials of total degree at most three in the eight lagged county characteristics that involve at most two distinct covariates. The nuisance functions f 0 f_0 f 0 and g 0 g_0 g 0 are fitted from first-differenced, period-demeaned equations by ℓ 1 \ell_1 ℓ 1 -penalized GMM with lagged long-difference instruments; the mediator fit also supplies the preliminary coefficient γ ~ k \widetilde{\gamma}_k γ k . The treatment nuisance h 0 h_0 h 0 is fitted by least squares on the same library. Algorithm 1 uses five folds, a cyclic auxiliary fold, and the identity weighting matrix. Instrument histories are truncated at their two most recent lags, producing 99 moments for the three parameters in Specification I and 627 moments for the nineteen parameters in Specification II.
For inference, each bootstrap replication samples 3,058 counties with replacement and retains the complete 2000–2019 trajectory of every selected county. All first-stage fits, fold-specific transformations, GMM estimates, and causal-effect calculations are then repeated. The two specifications use exactly the same county resample within a replication, so the standard errors for their differences account for the resulting dependence. The reported standard errors use 500 replications.
Because treatment enters both empirical dictionaries linearly, the period-t t t derivative effects equal the corresponding one-period level contrasts. In particular,
N D D t , t = N D E t ( ( 0 t − 1 ′ , 1 ) ′ , 0 t ) , N I D t , t = N I E t ( ( 0 t − 1 ′ , 1 ) ′ , 0 t ) , \mathrm{NDD}_{t,t}=\mathrm{NDE}_{t}\left((\mathbf{0}_{t-1}^{\prime},1)^{\prime},\mathbf{0}_{t}\right), \qquad\mathrm{NID}_{t,t}=\mathrm{NIE}_{t}\left((\mathbf{0}_{t-1}^{\prime},1)^{\prime},\mathbf{0}_{t}\right), NDD t , t = NDE t ( ( 0 t − 1 ′ , 1 ) ′ , 0 t ) , NID t , t = NIE t ( ( 0 t − 1 ′ , 1 ) ′ , 0 t ) ,
with the analogous identity between T D t , t \mathrm{TD}_{t,t} TD t , t and T E t \mathrm{TE}_{t} TE t . Since all variables are standardized, the entries of Table 2 may therefore be read either as average derivatives or as effects of increasing the period-t t t employment rate by one standard deviation while setting the other treatment components to zero.
Table 2. County-level mediation estimates, 2001–2019
Period-specific empirical effects
Figure A.1 traces the path concealed by the averages of Panel B. Since the coefficients do not vary with t t t , the profile measures how the evolving demographic and migration composition of U.S. counties shifted the period-t t t effect, not a change in the structural parameters themselves. All three profiles are U-shaped: T D t , t \mathrm{TD}_{t,t} TD t , t falls from 0.635 in 2001 to a minimum of 0.564 in 2010 and recovers to 0.692 by 2019. The two channels reach their minima two years apart, N D D t , t \mathrm{NDD}_{t,t} NDD t , t in 2008 at 0.322 and N I D t , t \mathrm{NID}_{t,t} NID t , t in 2010 at 0.229. The ordering of the troughs matches what slow local wage adjustment would predict, and it is a pattern that the averaged estimands alone would not reveal.
Figure A.1. (a) N D D t , t \mathrm{NDD}_{t,t} NDD t , t : direct channel (b) N I D t , t \mathrm{NID}_{t,t} NID t , t : wage channel (c) T D t , t \mathrm{TD}_{t,t} TD t , t : total effect. Period-t t t derivative effects under Specification II, with 95% county-trajectory bootstrap intervals.
Proofs
Proof of Theorem 1
Note that X ⊥ ⊥ ( Y , W ) ∣ Z X \perp\!\!\!\perp(Y,W) \mid Z X ⊥ ⊥ ( Y , W ) ∣ Z implies X ⊥ ⊥ Y ∣ W , Z X \perp\!\!\!\perp Y \mid W,Z X ⊥ ⊥ Y ∣ W , Z . Then, (1) implies
Y i t ( d ˉ t , m ˉ t ) ⊥ ⊥ D i s ∣ X ˉ i t , D ˉ i , s − 1 = d ˉ s − 1 , M ˉ i , s − 1 = m ˉ s − 1 , α i Y , λ t Y , ∀ s ≤ t , (43) Y_{it}(\bar{d}_t,\bar{m}_t) \perp\!\!\!\perp D_{is} \mid\bar{X}_{it},\bar{D}_{i,s-1}=\bar{d}_{s-1},\bar{M}_{i,s-1}=\bar{m}_{s-1},\alpha_i^Y,\lambda_t^Y,\quad\forall s \leq t, \tag*{(43)} Y i t ( d ˉ t , m ˉ t ) ⊥ ⊥ D i s ∣ X ˉ i t , D ˉ i , s − 1 = d ˉ s − 1 , M ˉ i , s − 1 = m ˉ s − 1 , α i Y , λ t Y , ∀ s ≤ t , (43)
and (2) implies
Y i t ( d ˉ t , m ˉ t ) ⊥ ⊥ M i s ∣ X ˉ i t , D ˉ i s = d ˉ s , M ˉ i , s − 1 = m ˉ s − 1 , α i Y , λ ˉ t Y , ∀ s ≤ t . (44) Y_{it}(\bar{d}_t,\bar{m}_t) \perp\!\!\!\perp M_{is} \mid\bar{X}_{it},\bar{D}_{is}=\bar{d}_s,\bar{M}_{i,s-1}=\bar{m}_{s-1},\alpha_i^Y,\bar{\lambda}_t^Y,\quad\forall s\le t. \tag*{(44)} Y i t ( d ˉ t , m ˉ t ) ⊥ ⊥ M i s ∣ X ˉ i t , D ˉ i s = d ˉ s , M ˉ i , s − 1 = m ˉ s − 1 , α i Y , λ ˉ t Y , ∀ s ≤ t . (44)
Under Assumption 3, if D ˉ i t = d ˉ t \bar{D}_{it}=\bar{d}_t D ˉ i t = d ˉ t and M ˉ i t = m ˉ t \bar{M}_{it}=\bar{m}_t M ˉ i t = m ˉ t , then Y i t = Y i t ( d ˉ t , m ˉ t ) Y_{it}=Y_{it}(\bar{d}_t,\bar{m}_t) Y i t = Y i t ( d ˉ t , m ˉ t ) . Therefore,
E ( Y i t ∣ X ˉ i t , D ˉ i t = d ˉ t , M ˉ i t = m ˉ t , α i Y , λ ˉ t Y ) = E { Y i t ( d ˉ t , m ˉ t ) ∣ X ˉ i t , D ˉ i t = d ˉ t , M ˉ i t = m ˉ t , α i Y , λ ˉ t Y } . \operatorname{E}(Y_{it}\mid\bar{X}_{it},\bar{D}_{it}=\bar{d}_t,\bar{M}_{it}=\bar{m}_t,\alpha_i^Y,\bar{\lambda}_t^Y)=\operatorname{E}\{Y_{it}(\bar{d}_t,\bar{m}_t)\mid\bar{X}_{it},\bar{D}_{it}=\bar{d}_t,\bar{M}_{it}=\bar{m}_t,\alpha_i^Y,\bar{\lambda}_t^Y\}. E ( Y i t ∣ X ˉ i t , D ˉ i t = d ˉ t , M ˉ i t = m ˉ t , α i Y , λ ˉ t Y ) = E { Y i t ( d ˉ t , m ˉ t ) ∣ X ˉ i t , D ˉ i t = d ˉ t , M ˉ i t = m ˉ t , α i Y , λ ˉ t Y } .
Repeatedly using (A.19) and (A.18), in this order, from s = t s=t s = t down to s = 1 s=1 s = 1 , eliminates M ˉ i s = m ˉ s \bar{M}_{is}=\bar{m}_s M ˉ i s = m ˉ s and then D ˉ i s = d ˉ s \bar{D}_{is}=\bar{d}_s D ˉ i s = d ˉ s in each period, yielding
E { Y i t ( d ˉ t , m ˉ t ) ∣ X ˉ i t , D ˉ i t = d ˉ t , M ˉ i t = m ˉ t , α i Y , λ ˉ t Y } = E { Y i t ( d ˉ t , m ˉ t ) ∣ X ˉ i t , α i Y , λ ˉ t Y } . \operatorname{E}\{Y_{it}(\bar{d}_t,\bar{m}_t)\mid\bar{X}_{it},\bar{D}_{it}=\bar{d}_t,\bar{M}_{it}=\bar{m}_t,\alpha_i^Y,\bar{\lambda}_t^Y\}=\operatorname{E}\{Y_{it}(\bar{d}_t,\bar{m}_t)\mid\bar{X}_{it},\alpha_i^Y,\bar{\lambda}_t^Y\}. E { Y i t ( d ˉ t , m ˉ t ) ∣ X ˉ i t , D ˉ i t = d ˉ t , M ˉ i t = m ˉ t , α i Y , λ ˉ t Y } = E { Y i t ( d ˉ t , m ˉ t ) ∣ X ˉ i t , α i Y , λ ˉ t Y } .
Similarly, (3) implies
M i t ( d ˉ t ) ⊥ ⊥ D i s ∣ X ˉ i t , D ˉ i , s − 1 = d ˉ s − 1 , α i M , λ ˉ t M , ∀ s ≤ t . (45) M_{it}(\bar{d}_t) \perp\!\!\!\perp D_{is}\mid\bar{X}_{it},\bar{D}_{i,s-1}=\bar{d}_{s-1},\alpha_i^M,\bar{\lambda}_t^M,\quad\forall s\le t. \tag*{(45)} M i t ( d ˉ t ) ⊥ ⊥ D i s ∣ X ˉ i t , D ˉ i , s − 1 = d ˉ s − 1 , α i M , λ ˉ t M , ∀ s ≤ t . (45)
Consistency and repeated application of (A.20) give
E ( M i t ∣ X ˉ i t , D ˉ i t = d ˉ t , α i M , λ ˉ t M ) = E { M i t ( d ˉ t ) ∣ X ˉ i t , α i M , λ ˉ t M } . \operatorname{E}(M_{it}\mid\bar{X}_{it},\bar{D}_{it}=\bar{d}_t,\alpha_i^M,\bar{\lambda}_t^M)=\operatorname{E}\{M_{it}(\bar{d}_t)\mid\bar{X}_{it},\alpha_i^M,\bar{\lambda}_t^M\}. E ( M i t ∣ X ˉ i t , D ˉ i t = d ˉ t , α i M , λ ˉ t M ) = E { M i t ( d ˉ t ) ∣ X ˉ i t , α i M , λ ˉ t M } .
This establishes the two conditional-mean identities.
Under the mediation model for the potential outcomes,
E { Y i t ( d ˉ t , m ˉ t ) ∣ X ˉ i t , α i Y , λ ˉ t Y } = τ Y ( d ˉ t − L : t , m ˉ t − L : t , X ˉ i , t − L : t ) ′ θ 0 + f 0 ( X ˉ i , t − L : t ) + α i Y + λ t Y \operatorname{E}\{Y_{it}(\bar{d}_t,\bar{m}_t)\mid\bar{X}_{it},\alpha_i^Y,\bar{\lambda}_t^Y\}=\tau_Y(\bar{d}_{t-L:t},\bar{m}_{t-L:t},\bar{X}_{i,t-L:t})^\prime\theta_0+f_0(\bar{X}_{i,t-L:t})+\alpha_i^Y+\lambda_t^Y E { Y i t ( d ˉ t , m ˉ t ) ∣ X ˉ i t , α i Y , λ ˉ t Y } = τ Y ( d ˉ t − L : t , m ˉ t − L : t , X ˉ i , t − L : t ) ′ θ 0 + f 0 ( X ˉ i , t − L : t ) + α i Y + λ t Y
and
E { M i t ( d ˉ t ) ∣ X ˉ i t , α i M , λ ˉ t M } = τ M ( d ˉ t − L : t , X ˉ i , t − L : t ) ′ γ 0 + g 0 ( X ˉ i , t − L : t ) + α i M + λ t M . \operatorname{E}\{M_{it}(\bar{d}_t)\mid\bar{X}_{it},\alpha_i^M,\bar{\lambda}_t^M\}=\tau_M(\bar{d}_{t-L:t},\bar{X}_{i,t-L:t})^\prime\gamma_0+g_0(\bar{X}_{i,t-L:t})+\alpha_i^M+\lambda_t^M. E { M i t ( d ˉ t ) ∣ X ˉ i t , α i M , λ ˉ t M } = τ M ( d ˉ t − L : t , X ˉ i , t − L : t ) ′ γ 0 + g 0 ( X ˉ i , t − L : t ) + α i M + λ t M .
Combining these equations with the conditional-mean identities gives
E ( Y i t ∣ X ˉ i t , D ˉ i t , M ˉ i t , α i Y , λ ˉ t Y ) = τ Y ( D ˉ i , t − L : t , M ˉ i , t − L : t , X ˉ i , t − L : t ) ′ θ 0 + f 0 ( X ˉ i , t − L : t ) + α i Y + λ t Y , (46) \operatorname{E}(Y_{it}\mid\bar{X}_{it},\bar{D}_{it},\bar{M}_{it},\alpha_i^Y,\bar{\lambda}_t^Y)=\tau_Y(\bar{D}_{i,t-L:t},\bar{M}_{i,t-L:t},\bar{X}_{i,t-L:t})^\prime\theta_0+f_0(\bar{X}_{i,t-L:t})+\alpha_i^Y+\lambda_t^Y, \tag*{(46)} E ( Y i t ∣ X ˉ i t , D ˉ i t , M ˉ i t , α i Y , λ ˉ t Y ) = τ Y ( D ˉ i , t − L : t , M ˉ i , t − L : t , X ˉ i , t − L : t ) ′ θ 0 + f 0 ( X ˉ i , t − L : t ) + α i Y + λ t Y , (46)
E ( M i t ∣ X ˉ i t , D ˉ i t , α i M , λ ˉ t M ) = τ M ( D ˉ i , t − L : t , X ˉ i , t − L : t ) ′ γ 0 + g 0 ( X ˉ i , t − L : t ) + α i M + λ t M . (47) \operatorname{E}(M_{it}\mid\bar{X}_{it},\bar{D}_{it},\alpha_i^M,\bar{\lambda}_t^M)=\tau_M(\bar{D}_{i,t-L:t},\bar{X}_{i,t-L:t})^\prime\gamma_0+g_0(\bar{X}_{i,t-L:t})+\alpha_i^M+\lambda_t^M. \tag*{(47)} E ( M i t ∣ X ˉ i t , D ˉ i t , α i M , λ ˉ t M ) = τ M ( D ˉ i , t − L : t , X ˉ i , t − L : t ) ′ γ 0 + g 0 ( X ˉ i , t − L : t ) + α i M + λ t M . (47)
Equations (A.21) and (A.22) are equivalent to (4). Q.E.D.
Proof of Theorem 2
Let P \mathbb{P} P denote expectation under F 0 F_0 F 0 and write Δ N : = β ^ 0 D − β 0 \Delta_N := \widehat{\beta}_0^D-\beta_0 Δ N := β 0 D − β 0 . The proof first verifies that the contribution functions target the causal estimands, then establishes the uniform first-order expansion needed for the plug-in estimator.
Step 1: Causal interpretation of the contribution functions. Under the potential-outcome mediator model, for any admissible treatment history d ‾ t \overline{d}_t d t ,
M i t ( d ‾ t ) − M i t ( D ‾ i t ) = { τ M ( d ‾ t − L : t , X ‾ i , t − L : t ) − τ M ( D ‾ i , t − L : t , X ‾ i , t − L : t ) } ′ γ 0 . M_{it}(\overline{d}_t)-M_{it}(\overline{D}_{it})=\left\{\tau_M(\overline{d}_{t-L:t},\overline{X}_{i,t-L:t})-\tau_M(\overline{D}_{i,t-L:t},\overline{X}_{i,t-L:t})\right\}^{\prime}\gamma_0. M i t ( d t ) − M i t ( D i t ) = { τ M ( d t − L : t , X i , t − L : t ) − τ M ( D i , t − L : t , X i , t − L : t ) } ′ γ 0 .
The nuisance regression, fixed effects, and structural disturbance cancel because they are common to the two potential mediators. By Assumption 3, M i t ( D ‾ i t ) = M i t M_{it}(\overline{D}_{it})=M_{it} M i t ( D i t ) = M i t , and hence
M i t β 0 ( d ‾ t ) = M i t ( d ‾ t ) . (48) M_{it}^{\beta_0}(\overline{d}_t)=M_{it}(\overline{d}_t). \tag*{(48)} M i t β 0 ( d t ) = M i t ( d t ) . (48)
The same argument applied to the potential-outcome equation gives
Y i t ( d ‾ t , m ‾ t ) − Y i t ( D ‾ i t , M ‾ i t ) = { τ Y ( d ‾ t − L : t , m ‾ t − L : t , X ‾ i , t − L : t ) − τ Y ( D ‾ i , t − L : t , M ‾ i , t − L : t , X ‾ i , t − L : t ) } ′ θ 0 . Y_{it}(\overline{d}_t,\overline{m}_t)-Y_{it}(\overline{D}_{it},\overline{M}_{it})
=\left\{\tau_Y(\overline{d}_{t-L:t},\overline{m}_{t-L:t},\overline{X}_{i,t-L:t})-\tau_Y(\overline{D}_{i,t-L:t},\overline{M}_{i,t-L:t},\overline{X}_{i,t-L:t})\right\}^{\prime}\theta_0. Y i t ( d t , m t ) − Y i t ( D i t , M i t ) = { τ Y ( d t − L : t , m t − L : t , X i , t − L : t ) − τ Y ( D i , t − L : t , M i , t − L : t , X i , t − L : t ) } ′ θ 0 .
Consistency therefore implies
Y i t β 0 ( d ‾ t , m ‾ t ) = Y i t ( d ‾ t , m ‾ t ) . (49) Y_{it}^{\beta_0}(\overline{d}_t,\overline{m}_t)=Y_{it}(\overline{d}_t,\overline{m}_t). \tag*{(49)} Y i t β 0 ( d t , m t ) = Y i t ( d t , m t ) . (49)
Applying (A.23) period by period and substituting the resulting mediator history into (A.24) yields
Y i t β 0 { a ‾ t , M ‾ i t β 0 ( b ‾ t ) } = Y i t { a ‾ t , M ‾ i t ( b ‾ t ) } . Y_{it}^{\beta_0}\{\overline{a}_t,\overline{M}_{it}^{\beta_0}(\overline{b}_t)\}=Y_{it}\{\overline{a}_t,\overline{M}_{it}(\overline{b}_t)\}. Y i t β 0 { a t , M i t β 0 ( b t )} = Y i t { a t , M i t ( b t )} .
Thus, taking expectations of the level-effect contributions at β 0 \beta_0 β 0 gives the CDE, NDE, NIE, and TE in § 2.2 . For example,
E { ℓ i , t N D E ( β 0 ) } = E [ Y i t { d ‾ t , M ‾ i t ( d ‾ t ∗ ) } − Y i t { d ‾ t ∗ , M ‾ i t ( d ‾ t ∗ ) } ] . = NDE t ( d ˉ t , d ˉ t ∗ ) . \begin{aligned}
\mathbb{E}\{\ell_{i,t}^{\mathrm{NDE}}(\beta_0)\}=\mathbb{E}\left[Y_{it}\{\overline{d}_t,\overline{M}_{it}(\overline{d}_t^*)\}-Y_{it}\{\overline{d}_t^*,\overline{M}_{it}(\overline{d}_t^*)\}\right]. \\
&= \operatorname{NDE}_{t}(\bar{d}_{t},\bar{d}_{t}^{*}).
\end{aligned} E { ℓ i , t NDE ( β 0 )} = E [ Y i t { d t , M i t ( d t ∗ )} − Y i t { d t ∗ , M i t ( d t ∗ )} ] . = NDE t ( d ˉ t , d ˉ t ∗ ) .
For derivative effects, Assumption 5(iii) permits differentiation to pass through expectation. In particular,
E { ℓ t , j N I D ( β 0 ) } = E [ ∂ ∂ β j Y i t { a ˉ t , M ‾ i t ( b ˉ t ) } ∣ a ˉ t = b ˉ t = d ˉ t ] = ∂ ∂ β j E [ Y i t { a ˉ t , M ‾ i t ( b ˉ t ) } ] ∣ a ˉ t = b ˉ t = d ˉ t = NID t , j ( d ˉ t ) , \begin{aligned}
\mathbb{E}\{\ell_{t,j}^{\mathrm{NID}}(\beta_{0})\}
= \mathbb{E}\left[\left.\frac{\partial}{\partial\beta_{j}}Y_{it}\{\bar{a}_{t},\overline{M}_{it}(\bar{b}_{t})\}\right|_{\bar{a}_{t}=\bar{b}_{t}=\bar{d}_{t}}\right] \\
&= \left.\frac{\partial}{\partial\beta_{j}}\mathbb{E}\left[Y_{it}\{\bar{a}_{t},\overline{M}_{it}(\bar{b}_{t})\}\right]\right|_{\bar{a}_{t}=\bar{b}_{t}=\bar{d}_{t}} \\
&= \operatorname{NID}_{t,j}(\bar{d}_{t}),
\end{aligned} E { ℓ t , j NID ( β 0 )} = E [ ∂ β j ∂ Y i t { a ˉ t , M i t ( b ˉ t )} a ˉ t = b ˉ t = d ˉ t ] = ∂ β j ∂ E [ Y i t { a ˉ t , M i t ( b ˉ t )} ] a ˉ t = b ˉ t = d ˉ t = NID t , j ( d ˉ t ) ,
and the CDD, NDD, and TD cases follow analogously. Hence the vector ϑ 0 \vartheta_{0} ϑ 0 in (18) is the stated stack of causal estimands.
Step 2: Uniform control of the causal-effect Jacobian. Set
G ( W i ; β ) : = ℓ ˙ β ( W i ; β ) , F ( W i ) : = sup β ∈ B ∥ G ( W i ; β ) ∥ F . G(W_{i};\beta):=\dot{\ell}_{\beta}(W_{i};\beta), \qquad F(W_{i}):=\sup_{\beta\in\mathcal{B}}\left\|G(W_{i};\beta)\right\|_{F}. G ( W i ; β ) := ℓ ˙ β ( W i ; β ) , F ( W i ) := β ∈ B sup ∥ G ( W i ; β ) ∥ F .
Assumption 5(ii) gives E { F ( W i ) 2 } < ∞ \mathbb{E}\{F(W_{i})^{2}\}<\infty E { F ( W i ) 2 } < ∞ , and therefore E F ( W i ) < ∞ \mathbb{E}F(W_{i})<\infty E F ( W i ) < ∞ . For a > 0 a>0 a > 0 , define
ω a ( W i ) : = sup β , β ~ ∈ B ∥ β − β ~ ∥ ≤ a ∥ G ( W i ; β ) − G ( W i ; β ~ ) ∥ F . \omega_{a}(W_{i}):=\sup_{\substack{\beta,\tilde{\beta}\in\mathcal{B}\\ \|\beta-\tilde{\beta}\|\leq a}}\left\|G(W_{i};\beta)-G(W_{i};\tilde{\beta})\right\|_{F}. ω a ( W i ) := β , β ~ ∈ B ∥ β − β ~ ∥ ≤ a sup G ( W i ; β ) − G ( W i ; β ~ ) F .
For almost every W i W_{i} W i , continuity of G ( W i ; ⋅ ) G(W_{i};\cdot) G ( W i ; ⋅ ) on the compact set B \mathcal{B} B implies ω a ( W i ) → 0 \omega_{a}(W_{i})\to0 ω a ( W i ) → 0 as a ↓ 0 a\downarrow0 a ↓ 0 . Since ω a ( W i ) ≤ 2 F ( W i ) \omega_{a}(W_{i})\leq2F(W_{i}) ω a ( W i ) ≤ 2 F ( W i ) , dominated convergence gives
E { ω a ( W i ) } ⟶ 0 as a ↓ 0. \mathbb{E}\{\omega_{a}(W_{i})\}\longrightarrow0 \qquad\text{as } a\downarrow0. E { ω a ( W i )} ⟶ 0 as a ↓ 0.
For fixed a a a , cover B \mathcal{B} B by finitely many balls of radius a a a with centers β 1 , … , β J ( a ) \beta_{1},\ldots,\beta_{J(a)} β 1 , … , β J ( a ) . Then
sup β ∈ B ∥ ( P N − P ) G ( W i ; β ) ∥ F ≤ max 1 ≤ j ≤ J ( a ) ∥ ( P N − P ) G ( W i ; β j ) ∥ F + P N ω a ( W i ) + P ω a ( W i ) . (50) \sup_{\beta\in\mathcal{B}}\left\|(\mathbb{P}_{N}-\mathbb{P})G(W_{i};\beta)\right\|_{F}
\leq
\max_{1\leq j\leq J(a)}\left\|(\mathbb{P}_{N}-\mathbb{P})G(W_{i};\beta_{j})\right\|_{F}
+\mathbb{P}_{N}\omega_{a}(W_{i})+\mathbb{P}\omega_{a}(W_{i}). \tag*{(50)} β ∈ B sup ∥ ( P N − P ) G ( W i ; β ) ∥ F ≤ 1 ≤ j ≤ J ( a ) max ∥ ( P N − P ) G ( W i ; β j ) ∥ F + P N ω a ( W i ) + P ω a ( W i ) . (50)
For fixed a a a , the first term converges in probability to zero by the ordinary law of large numbers, and P N ω a ( W i ) → p P ω a ( W i ) \mathbb{P}_N\omega_a(W_i) \xrightarrow{p} \mathbb{P}\omega_a(W_i) P N ω a ( W i ) p P ω a ( W i ) . Letting a ↓ 0 a \downarrow0 a ↓ 0 after taking the probability limit superior in (A.25) gives
sup β ∈ B ∥ ( P N − P ) G ( W i ; β ) ∥ F → p 0. (51) \sup_{\beta\in\mathcal{B}} \left\|(\mathbb{P}_N-\mathbb{P})G(W_i;\beta)\right\|_F \xrightarrow{p} 0. \tag*{(51)} β ∈ B sup ∥ ( P N − P ) G ( W i ; β ) ∥ F p 0. (51)
Moreover, pointwise continuity of G ( W i ; β ) G(W_i;\beta) G ( W i ; β ) and domination by F ( W i ) F(W_i) F ( W i ) imply that β ↦ P G ( W i ; β ) \beta\mapsto\mathbb{P}G(W_i;\beta) β ↦ P G ( W i ; β ) is continuous at β 0 \beta_0 β 0 . Therefore, for every deterministic sequence δ N ↓ 0 \delta_N \downarrow0 δ N ↓ 0 ,
sup β ∈ B ∥ β − β 0 ∥ ≤ δ N ∥ P N G ( W i ; β ) − J ϑ ∥ F → p 0. (52) \sup_{\substack{\beta\in\mathcal{B}\\ \lVert\beta-\beta_0\rVert\leq\delta_N}} \left\|\mathbb{P}_N G(W_i;\beta)-J_\vartheta\right\|_F \xrightarrow{p} 0. \tag*{(52)} β ∈ B ∥ β − β 0 ∥ ≤ δ N sup ∥ P N G ( W i ; β ) − J ϑ ∥ F p 0. (52)
Step 3: Linearization of the plug-in term. Using (18), add and subtract P N ℓ ( W i ; β 0 ) \mathbb{P}_N\ell(W_i;\beta_0) P N ℓ ( W i ; β 0 ) to obtain
N ( ϑ ^ − ϑ 0 ) = N ( P N − P ) ℓ ( W i ; β 0 ) + N P N { ℓ ( W i ; β ^ 0 D ) − ℓ ( W i ; β 0 ) } . (53) \sqrt{N}(\widehat{\vartheta}-\vartheta_0)=\sqrt{N}(\mathbb{P}_N-\mathbb{P})\ell(W_i;\beta_0)+\sqrt{N}\mathbb{P}_N\{\ell(W_i;\widehat{\beta}_0^D)-\ell(W_i;\beta_0)\}. \tag*{(53)} N ( ϑ − ϑ 0 ) = N ( P N − P ) ℓ ( W i ; β 0 ) + N P N { ℓ ( W i ; β 0 D ) − ℓ ( W i ; β 0 )} . (53)
Theorem A1 gives N Δ N = O p ( 1 ) \sqrt{N}\Delta_N=O_p(1) N Δ N = O p ( 1 ) . Because β 0 \beta_0 β 0 is an interior point of the compact convex set B \mathcal{B} B , the line segment { β 0 + u Δ N : 0 ≤ u ≤ 1 } \{\beta_0+u\Delta_N:0\leq u\leq1\} { β 0 + u Δ N : 0 ≤ u ≤ 1 } lies in B \mathcal{B} B with probability approaching one. On this event, the fundamental theorem of calculus yields
ℓ ( W i ; β ^ 0 D ) − ℓ ( W i ; β 0 ) = [ ∫ 0 1 ℓ ˙ β ( W i ; β 0 + u Δ N ) d u ] Δ N . (54) \ell(W_i;\widehat{\beta}_0^D)-\ell(W_i;\beta_0)=\left[\int_0^1\dot{\ell}_{\beta}(W_i;\beta_0+u\Delta_N)\,du\right]\Delta_N. \tag*{(54)} ℓ ( W i ; β 0 D ) − ℓ ( W i ; β 0 ) = [ ∫ 0 1 ℓ ˙ β ( W i ; β 0 + u Δ N ) d u ] Δ N . (54)
Let
J ‾ N : = ∫ 0 1 P N ℓ ˙ β ( W i ; β 0 + u Δ N ) d u . \overline{J}_N:=\int_0^1\mathbb{P}_N\dot{\ell}_{\beta}(W_i;\beta_0+u\Delta_N)\,du. J N := ∫ 0 1 P N ℓ ˙ β ( W i ; β 0 + u Δ N ) d u .
Choose δ N = N − 1 / 4 \delta_N=N^{-1/4} δ N = N − 1/4 . Root-N N N consistency implies P ( ∥ Δ N ∥ ≤ δ N ) → 1 \mathbb{P}(\lVert\Delta_N\rVert\leq\delta_N)\to1 P (∥ Δ N ∥ ≤ δ N ) → 1 , and (A.27) then gives J ‾ N = J ϑ + o p ( 1 ) \overline{J}_N=J_\vartheta+o_p(1) J N = J ϑ + o p ( 1 ) . Averaging (A.29) and multiplying by N \sqrt{N} N therefore yields
N P N { ℓ ( W i ; β ^ 0 D ) − ℓ ( W i ; β 0 ) } = J ϑ N Δ N + o p ( 1 ) . (55) \sqrt{N}\mathbb{P}_N\{\ell(W_i;\widehat{\beta}_0^D)-\ell(W_i;\beta_0)\}=J_\vartheta\sqrt{N}\Delta_N+o_p(1). \tag*{(55)} N P N { ℓ ( W i ; β 0 D ) − ℓ ( W i ; β 0 )} = J ϑ N Δ N + o p ( 1 ) . (55)
Step 4: Influence-function representation and central limit theorem. By (A.14),
N Δ N = − A 0 1 N ∑ i = 1 N ψ ~ i + o p ( 1 ) . (56) \sqrt{N}\Delta_N=-A_0\frac{1}{\sqrt{N}}\sum_{i=1}^{N}\widetilde{\psi}_i+o_p(1). \tag*{(56)} N Δ N = − A 0 N 1 i = 1 ∑ N ψ i + o p ( 1 ) . (56)
Substituting (A.30) and (A.31) into (A.28) gives
N ( ϑ ^ − ϑ 0 ) = 1 N ∑ i = 1 N { ℓ ( W i ; β 0 ) − ϑ 0 } − J ϑ A 0 1 N ∑ i = 1 N ψ ~ i + o p ( 1 ) = 1 N ∑ i = 1 N φ ϑ , i + o p ( 1 ) . \begin{aligned}
\sqrt{N}(\widehat{\vartheta}-\vartheta_0)=\frac{1}{\sqrt{N}}\sum_{i=1}^{N}\{\ell(W_i;\beta_0)-\vartheta_0\}-J_{\vartheta}A_0\frac{1}{\sqrt{N}}\sum_{i=1}^{N}\widetilde{\psi}_i+o_p(1) \\
&=\frac{1}{\sqrt{N}}\sum_{i=1}^{N}\varphi_{\vartheta,i}+o_p(1).
\end{aligned} N ( ϑ − ϑ 0 ) = N 1 i = 1 ∑ N { ℓ ( W i ; β 0 ) − ϑ 0 } − J ϑ A 0 N 1 i = 1 ∑ N ψ i + o p ( 1 ) = N 1 i = 1 ∑ N φ ϑ , i + o p ( 1 ) .
The oracle moment conditions imply E ( ψ ~ i ) = 0 \mathrm{E}(\widetilde{\psi}_i)=\mathbf{0} E ( ψ i ) = 0 , while E { ℓ ( W i ; β 0 ) − ϑ 0 } = 0 \mathrm{E}\{\ell(W_i;\beta_0)-\vartheta_0\}=0 E { ℓ ( W i ; β 0 ) − ϑ 0 } = 0 by definition.
Hence E ( φ ϑ , i ) = 0 \mathrm{E}(\varphi_{\vartheta,i})=\mathbf{0} E ( φ ϑ , i ) = 0 . Furthermore,
E ∥ φ ϑ , i ∥ 2 ≤ 2 E ∥ ℓ ( W i ; β 0 ) − ϑ 0 ∥ 2 + 2 ∥ J ϑ A 0 ∥ F 2 E ∥ ψ ~ i ∥ 2 < ∞ \mathrm{E}\|\varphi_{\vartheta,i}\|^2\leq2\mathrm{E}\|\ell(W_i;\beta_0)-\vartheta_0\|^2+2\|J_{\vartheta}A_0\|_F^2\mathrm{E}\|\widetilde{\psi}_i\|^2<\infty E ∥ φ ϑ , i ∥ 2 ≤ 2 E ∥ ℓ ( W i ; β 0 ) − ϑ 0 ∥ 2 + 2∥ J ϑ A 0 ∥ F 2 E ∥ ψ i ∥ 2 < ∞
by Assumption 5(ii) and Assumption A1(i). Under (15) , the influence functions are i.i.d.; the multivariate central limit theorem and Slutsky’s theorem therefore establish (19) . The multivariate central limit theorem remains valid when Σ ϑ \Sigma_{\vartheta} Σ ϑ is singular, in which case the limiting normal law is degenerate on the corresponding linear subspace. Q.E.D.
Proof of Theorem 3
We first establish consistency of each ingredient of the estimated influence function and then prove convergence of its empirical second moment.
Step 1: Consistency of A ^ \widehat{A} A and J ^ ϑ \widehat{J}_{\vartheta} J ϑ . Theorem A2 gives G ^ → p G \widehat{G}\mathrel{\overset{p}{\to}}G G → p G and Ω ^ → p Ω \widehat{\Omega}\mathrel{\overset{p}{\to}}\Omega Ω → p Ω . Since G ′ Ω G G^{\prime}\Omega G G ′ Ω G is nonsingular, its smallest eigenvalue is strictly positive. Weyl’s inequality and continuity of matrix multiplication imply that G ^ ′ Ω ^ G ^ \widehat{G}^{\prime}\widehat{\Omega}\widehat{G} G ′ Ω G is nonsingular with probability approaching one. The continuous mapping theorem therefore gives
A ^ → p A 0 . \widehat{A}\mathrel{\overset{p}{\to}}A_0. A → p A 0 .
Further, Theorem A1 implies β ^ 0 D → p β 0 \widehat{\beta}_0^D\mathrel{\overset{p}{\to}}\beta_0 β 0 D → p β 0 . The uniform law of large numbers in (A.26), together with continuity of β ↦ E { ℓ ˙ β ( W i ; β ) } \beta\mapsto\mathrm{E}\{\dot{\ell}_{\beta}(W_i;\beta)\} β ↦ E { ℓ ˙ β ( W i ; β )} established in the proof of Theorem 2, gives
∥ J ^ ϑ − J ϑ ∥ F ≤ sup β ∈ B ∥ ( P N − E ) ℓ ˙ β ( W i ; β ) ∥ F + ∥ E { ℓ ˙ β ( W i ; β ^ 0 D ) } − E { ℓ ˙ β ( W i ; β 0 ) } ∥ F = o p ( 1 ) , \begin{aligned}
\|\widehat{J}_{\vartheta}-J_{\vartheta}\|_F\leq\sup_{\beta\in\mathcal{B}}\|(\mathbb{P}_N-\mathrm{E})\dot{\ell}_{\beta}(W_i;\beta)\|_F \\
&+ \left\| \mathbb{E}\{\dot{\ell}_{\beta}(W_i;\widehat{\beta}_0^D)\} - \mathbb{E}\{\dot{\ell}_{\beta}(W_i;\beta_0)\} \right\|_F = o_p(1),
\end{aligned} ∥ J ϑ − J ϑ ∥ F ≤ β ∈ B sup ∥ ( P N − E ) ℓ ˙ β ( W i ; β ) ∥ F + E { ℓ ˙ β ( W i ; β 0 D )} − E { ℓ ˙ β ( W i ; β 0 )} F = o p ( 1 ) ,
on the event β ^ 0 D ∈ B \widehat{\beta}_0^D \in\mathcal{B} β 0 D ∈ B , whose probability tends to one. Hence
J ^ ϑ → p J ϑ . (57) \widehat{J}_{\vartheta} \xrightarrow{p} J_{\vartheta}. \tag*{(57)} J ϑ p J ϑ . (57)
In particular, J ^ ϑ A ^ = O p ( 1 ) \widehat{J}_{\vartheta}\widehat{A}=O_p(1) J ϑ A = O p ( 1 ) and
J ^ ϑ A ^ − J ϑ A 0 = o p ( 1 ) . (58) \widehat{J}_{\vartheta}\widehat{A}-J_{\vartheta}A_0=o_p(1). \tag*{(58)} J ϑ A − J ϑ A 0 = o p ( 1 ) . (58)
Step 2: L 2 L^2 L 2 control of the plug-in causal contributions. On the event that the line segment between β ^ 0 D \widehat{\beta}_0^D β 0 D and β 0 \beta_0 β 0 is contained in B \mathcal{B} B , the integral expansion (A.29) and the Cauchy–Schwarz inequality imply
P N ∥ ℓ ( W i ; β ^ 0 D ) − ℓ ( W i ; β 0 ) ∥ 2 ≤ ∥ β ^ 0 D − β 0 ∥ 2 P N sup β ∈ B ∥ ℓ ˙ β ( W i ; β ) ∥ F 2 = o p ( 1 ) . (59) \mathbb{P}_N\left\|\ell(W_i;\widehat{\beta}_0^D)-\ell(W_i;\beta_0)\right\|^2
\leq\left\|\widehat{\beta}_0^D-\beta_0\right\|^2\mathbb{P}_N\sup_{\beta\in\mathcal{B}}\left\|\dot{\ell}_{\beta}(W_i;\beta)\right\|_F^2=o_p(1). \tag*{(59)} P N ℓ ( W i ; β 0 D ) − ℓ ( W i ; β 0 ) 2 ≤ β 0 D − β 0 2 P N β ∈ B sup ℓ ˙ β ( W i ; β ) F 2 = o p ( 1 ) . (59)
Indeed, the first factor is O p ( N − 1 ) O_p(N^{-1}) O p ( N − 1 ) , while the second is O p ( 1 ) O_p(1) O p ( 1 ) by Assumption 5(ii) and the law of large numbers. It follows that
∥ ϑ ^ − ϑ 0 ∥ ≤ [ P N ∥ ℓ ( W i ; β ^ 0 D ) − ℓ ( W i ; β 0 ) ∥ 2 ] 1 / 2 + ∥ P N ℓ ( W i ; β 0 ) − ϑ 0 ∥ = o p ( 1 ) , \left\|\widehat{\vartheta}-\vartheta_0\right\|
\leq\left[\mathbb{P}_N\left\|\ell(W_i;\widehat{\beta}_0^D)-\ell(W_i;\beta_0)\right\|^2\right]^{1/2}
+\left\|\mathbb{P}_N\ell(W_i;\beta_0)-\vartheta_0\right\|
=o_p(1), ϑ − ϑ 0 ≤ [ P N ℓ ( W i ; β 0 D ) − ℓ ( W i ; β 0 ) 2 ] 1/2 + ∥ P N ℓ ( W i ; β 0 ) − ϑ 0 ∥ = o p ( 1 ) ,
where the second term is o p ( 1 ) o_p(1) o p ( 1 ) by the law of large numbers. Thus
ϑ ^ → p ϑ 0 . (60) \widehat{\vartheta}\xrightarrow{p}\vartheta_0. \tag*{(60)} ϑ p ϑ 0 . (60)
Step 3: L 2 L^2 L 2 control of the centered estimated score. Let r i : = ψ ^ i − ψ ~ i r_i:=\widehat{\psi}_i-\widetilde{\psi}_i r i := ψ i − ψ i and r ‾ : = P N r i \overline{r}:=\mathbb{P}_N r_i r := P N r i . Then
ψ ^ = P N ψ ~ i + r ‾ . \widehat{\psi}=\mathbb{P}_N\widetilde{\psi}_i+\overline{r}. ψ = P N ψ i + r .
Condition (22) and Jensen’s inequality give ∥ r ‾ ∥ 2 ≤ P N ∥ r i ∥ 2 = o p ( 1 ) \|\overline{r}\|^2\leq\mathbb{P}_N\|r_i\|^2=o_p(1) ∥ r ∥ 2 ≤ P N ∥ r i ∥ 2 = o p ( 1 ) . Moreover, the i.i.d. central limit theorem and E ∥ ψ ~ i ∥ 2 < ∞ \mathbb{E}\|\widetilde{\psi}_i\|^2<\infty E ∥ ψ i ∥ 2 < ∞ give P N ψ ~ i = O p ( N − 1 / 2 ) \mathbb{P}_N\widetilde{\psi}_i=O_p(N^{-1/2}) P N ψ i = O p ( N − 1/2 ) . Therefore,
P N ∥ ψ ^ i − ψ ^ − ψ ~ i ∥ 2 = P N ∥ r i − r ˉ − P N ψ ~ i ∥ 2 \begin{aligned}
\mathbb{P}_N\left\|\widehat{\psi}_i-\widehat{\psi}-\widetilde{\psi}_i\right\|^2 \\
&= \mathbb{P}_N\lVert r_i-\bar r-\mathbb{P}_N\widetilde{\psi}_i\rVert^2
\end{aligned} P N ψ i − ψ − ψ i 2 = P N ∥ r i − r ˉ − P N ψ i ∥ 2
≤ 3 P N ∥ r i ∥ 2 + 3 ∥ r ˉ ∥ 2 + 3 ∥ P N ψ ~ i ∥ 2 = o p ( 1 ) . (61) \le3\mathbb{P}_N\lVert r_i\rVert^2+3\lVert\bar r\rVert^2+3\lVert\mathbb{P}_N\widetilde{\psi}_i\rVert^2=o_p(1). \tag*{(61)} ≤ 3 P N ∥ r i ∥ 2 + 3 ∥ r ˉ ∥ 2 + 3 ∥ P N ψ i ∥ 2 = o p ( 1 ) . (61)
Step 4: L 2 L^2 L 2 convergence of the estimated influence functions. Set
L i : = ℓ ( W i ; β ^ 0 D ) − ℓ ( W i ; β 0 ) , S i : = ( ψ ^ i − ψ ^ ) − ψ ~ i . L_i:=\ell(W_i;\widehat{\beta}_0^D)-\ell(W_i;\beta_0),\qquad S_i:=(\widehat{\psi}_i-\widehat{\psi})-\widetilde{\psi}_i. L i := ℓ ( W i ; β 0 D ) − ℓ ( W i ; β 0 ) , S i := ( ψ i − ψ ) − ψ i .
Subtracting (20) from (21) gives the exact decomposition
φ ^ ϑ , i − φ ϑ , i = L i − ( ϑ ^ − ϑ 0 ) − ( J ^ ϑ A ^ − J ϑ A 0 ) ψ ~ i − J ^ ϑ A ^ S i . \widehat{\varphi}_{\vartheta,i}-\varphi_{\vartheta,i}=L_i-(\widehat{\vartheta}-\vartheta_0)-\left(\widehat{J}_{\vartheta}\widehat{A}-J_{\vartheta}A_0\right)\widetilde{\psi}_i-\widehat{J}_{\vartheta}\widehat{A}S_i. φ ϑ , i − φ ϑ , i = L i − ( ϑ − ϑ 0 ) − ( J ϑ A − J ϑ A 0 ) ψ i − J ϑ A S i .
Using ∥ a 1 + ⋯ + a 4 ∥ 2 ≤ 4 ∑ j = 1 4 ∥ a j ∥ 2 \lVert a_1+\cdots+a_4\rVert^2\le4\sum_{j=1}^{4}\lVert a_j\rVert^2 ∥ a 1 + ⋯ + a 4 ∥ 2 ≤ 4 ∑ j = 1 4 ∥ a j ∥ 2 , we obtain
P N ∥ φ ^ ϑ , i − φ ϑ , i ∥ 2 ≤ 4 P N ∥ L i ∥ 2 + 4 ∥ ϑ ^ − ϑ 0 ∥ 2 + 4 ∥ J ^ ϑ A ^ − J ϑ A 0 ∥ F 2 P N ∥ ψ ~ i ∥ 2 + 4 ∥ J ^ ϑ A ^ ∥ F 2 P N ∥ S i ∥ 2 . \begin{aligned}
\mathbb{P}_N\lVert\widehat{\varphi}_{\vartheta,i}-\varphi_{\vartheta,i}\rVert^2
&\le4\mathbb{P}_N\lVert L_i\rVert^2+4\lVert\widehat{\vartheta}-\vartheta_0\rVert^2\\
&\quad+4\left\lVert\widehat{J}_{\vartheta}\widehat{A}-J_{\vartheta}A_0\right\rVert_F^2\mathbb{P}_N\lVert\widetilde{\psi}_i\rVert^2\\
&\quad+4\lVert\widehat{J}_{\vartheta}\widehat{A}\rVert_F^2\mathbb{P}_N\lVert S_i\rVert^2.
\end{aligned} P N ∥ φ ϑ , i − φ ϑ , i ∥ 2 ≤ 4 P N ∥ L i ∥ 2 + 4 ∥ ϑ − ϑ 0 ∥ 2 + 4 J ϑ A − J ϑ A 0 F 2 P N ∥ ψ i ∥ 2 + 4 ∥ J ϑ A ∥ F 2 P N ∥ S i ∥ 2 .
The first two terms are o p ( 1 ) o_p(1) o p ( 1 ) by (A.34) and (A.35). The third term is o p ( 1 ) o_p(1) o p ( 1 ) by (A.33) and P N ∥ ψ ~ i ∥ 2 = O p ( 1 ) \mathbb{P}_N\lVert\widetilde{\psi}_i\rVert^2=O_p(1) P N ∥ ψ i ∥ 2 = O p ( 1 ) . The fourth term is o p ( 1 ) o_p(1) o p ( 1 ) by (A.36) and J ^ ϑ A ^ = O p ( 1 ) \widehat{J}_{\vartheta}\widehat{A}=O_p(1) J ϑ A = O p ( 1 ) . Hence
P N ∥ φ ^ ϑ , i − φ ϑ , i ∥ 2 = o p ( 1 ) . (62) \mathbb{P}_N\lVert\widehat{\varphi}_{\vartheta,i}-\varphi_{\vartheta,i}\rVert^2=o_p(1). \tag*{(62)} P N ∥ φ ϑ , i − φ ϑ , i ∥ 2 = o p ( 1 ) . (62)
Step 5: Convergence of the covariance estimator. Let Δ φ i : = φ ^ ϑ , i − φ ϑ , i \Delta\varphi_i:=\widehat{\varphi}_{\vartheta,i}-\varphi_{\vartheta,i} Δ φ i := φ ϑ , i − φ ϑ , i . The identity a a ′ − b b ′ = ( a − b ) a ′ + b ( a − b ) ′ aa^\prime-bb^\prime=(a-b)a^\prime+b(a-b)^\prime a a ′ − b b ′ = ( a − b ) a ′ + b ( a − b ) ′ and the Cauchy–Schwarz inequality imply
∥ Σ ^ ϑ − P N φ ϑ , i φ ϑ , i ′ ∥ F ≤ { P N ∥ Δ φ i ∥ 2 } 1 / 2 [ { P N ∥ φ ^ ϑ , i ∥ 2 } 1 / 2 + { P N ∥ φ ϑ , i ∥ 2 } 1 / 2 ] . \left\lVert\widehat{\Sigma}_{\vartheta}-\mathbb{P}_N\varphi_{\vartheta,i}\varphi_{\vartheta,i}^\prime\right\rVert_F
\le\left\{\mathbb{P}_N\lVert\Delta\varphi_i\rVert^2\right\}^{1/2}
\left[\left\{\mathbb{P}_N\lVert\widehat{\varphi}_{\vartheta,i}\rVert^2\right\}^{1/2}+\left\{\mathbb{P}_N\lVert\varphi_{\vartheta,i}\rVert^2\right\}^{1/2}\right]. Σ ϑ − P N φ ϑ , i φ ϑ , i ′ F ≤ { P N ∥ Δ φ i ∥ 2 } 1/2 [ { P N ∥ φ ϑ , i ∥ 2 } 1/2 + { P N ∥ φ ϑ , i ∥ 2 } 1/2 ] .
The first factor is o p ( 1 ) o_p(1) o p ( 1 ) by (A.37). The law of large numbers gives P N ∥ φ ϑ , i ∥ 2 = O p ( 1 ) \mathbb{P}_N\lVert\varphi_{\vartheta,i}\rVert^2=O_p(1) P N ∥ φ ϑ , i ∥ 2 = O p ( 1 ) , and
P N ∥ φ ^ ϑ , i ∥ 2 ≤ 2 P N ∥ φ ϑ , i ∥ 2 + 2 P N ∥ Δ φ i ∥ 2 = O p ( 1 ) . \mathbb{P}_N\lVert\widehat{\varphi}_{\vartheta,i}\rVert^2\le2\mathbb{P}_N\lVert\varphi_{\vartheta,i}\rVert^2+2\mathbb{P}_N\lVert\Delta\varphi_i\rVert^2=O_p(1). P N ∥ φ ϑ , i ∥ 2 ≤ 2 P N ∥ φ ϑ , i ∥ 2 + 2 P N ∥ Δ φ i ∥ 2 = O p ( 1 ) .
Thus the displayed covariance difference is o p ( 1 ) o_p(1) o p ( 1 ) . Finally,
P N φ ϑ , i φ ϑ , i ′ → p E ( φ ϑ , i φ ϑ , i ′ ) = Σ ϑ \mathbb{P}_N\varphi_{\vartheta,i}\varphi_{\vartheta,i}' \xrightarrow{p} E(\varphi_{\vartheta,i}\varphi_{\vartheta,i}') = \Sigma_{\vartheta} P N φ ϑ , i φ ϑ , i ′ p E ( φ ϑ , i φ ϑ , i ′ ) = Σ ϑ
by the law of large numbers. Together with (A.32), this proves the proposition. Q.E.D.
Proof of Proposition A1
Because q M q_M q M , s Y s_Y s Y , s M s_M s M , T T T , and K K K are fixed, the dimensions of the stacked individual score and its Jacobian do not vary with N N N . Under the vector counterparts of Assumptions A1 and A2, the argument of Lemma 1 applies componentwise and gives
1 N ∑ k = 1 K ∑ i ∈ F k ψ ^ i k , ( v ) ( β 0 ) = 1 N ∑ i = 1 N ψ ~ i ( v ) + o p ( 1 ) . \frac{1}{\sqrt{N}}\sum_{k=1}^{K}\sum_{i\in\mathcal{F}_k}\widehat{\psi}_i^{k,(v)}(\beta_0)=\frac{1}{\sqrt{N}}\sum_{i=1}^{N}\widetilde{\psi}_i^{(v)}+o_p(1). N 1 k = 1 ∑ K i ∈ F k ∑ ψ i k , ( v ) ( β 0 ) = N 1 i = 1 ∑ N ψ i ( v ) + o p ( 1 ) .
The vector counterpart of Assumption A3 and the argument of Lemma 2 likewise imply that the sample Jacobian converges in probability to G ( v ) G^{(v)} G ( v ) . Expanding the GMM first-order condition around β 0 \beta_0 β 0 and using Ω ^ ( v ) → p Ω ( v ) \widehat{\Omega}^{(v)}\xrightarrow{p}\Omega^{(v)} Ω ( v ) p Ω ( v ) therefore yields
N ( β ^ 0 D , v − β 0 ) = − A 0 ( v ) 1 N ∑ i = 1 N ψ ~ i ( v ) + o p ( 1 ) . \sqrt{N}(\widehat{\beta}_0^{D,v}-\beta_0)=-A_0^{(v)}\frac{1}{\sqrt{N}}\sum_{i=1}^{N}\widetilde{\psi}_i^{(v)}+o_p(1). N ( β 0 D , v − β 0 ) = − A 0 ( v ) N 1 i = 1 ∑ N ψ i ( v ) + o p ( 1 ) .
The oracle scores are i.i.d. across i i i , have mean zero, and have a finite second moment under the vector moment conditions. The multivariate central limit theorem and Slutsky’s theorem then give (A.11).
For the causal estimands, the vector counterfactual maps in (A.9)–(A.10) equal the corresponding potential variables at β 0 \beta_0 β 0 . The vector counterpart of Assumption 5 permits the same empirical-process and mean-value expansion as in the proof of Theorem 2:
N ( ϑ ^ ( v ) − ϑ 0 ( v ) ) = 1 N ∑ i = 1 N { ℓ ( v ) ( W i ; β 0 ) − ϑ 0 ( v ) } + J ϑ ( v ) N ( β ^ 0 D , v − β 0 ) + o p ( 1 ) . \sqrt{N}(\widehat{\vartheta}^{(v)}-\vartheta_0^{(v)})=\frac{1}{\sqrt{N}}\sum_{i=1}^{N}\{\ell^{(v)}(W_i;\beta_0)-\vartheta_0^{(v)}\}+J_{\vartheta}^{(v)}\sqrt{N}(\widehat{\beta}_0^{D,v}-\beta_0)+o_p(1). N ( ϑ ( v ) − ϑ 0 ( v ) ) = N 1 i = 1 ∑ N { ℓ ( v ) ( W i ; β 0 ) − ϑ 0 ( v ) } + J ϑ ( v ) N ( β 0 D , v − β 0 ) + o p ( 1 ) .
Substituting the preceding expansion for β ^ 0 D , v \widehat{\beta}_0^{D,v} β 0 D , v gives (A.12), and the multivariate central limit theorem gives the stated covariance matrix. Q.E.D.
Proof of Lemma 1
Condition on the realized fold partition and fix a fold k k k . Write n = ∣ F k ∣ = ∣ F k ′ ∣ n = |\mathcal{F}_k| = |\mathcal{F}_{k'}| n = ∣ F k ∣ = ∣ F k ′ ∣ , η ^ k = ( f ^ 0 k , g ^ 0 k , h ^ 0 k , ρ ^ 0 k ) \widehat{\eta}_k = (\widehat{f}_{0k}, \widehat{g}_{0k}, \widehat{h}_{0k}, \widehat{\rho}_{0k}) η k = ( f 0 k , g 0 k , h 0 k , ρ 0 k ) , G k = σ ( W j : j ∈ F k , k ′ c ) \mathcal{G}_k = \sigma(W_j : j \in\mathcal{F}^{c}_{k,k'}) G k = σ ( W j : j ∈ F k , k ′ c ) , and E k ( ⋅ ) = E ( ⋅ ∣ G k ) \mathbb{E}_k(\cdot) = \mathbb{E}(\cdot\mid\mathcal{G}_k) E k ( ⋅ ) = E ( ⋅ ∣ G k ) . Conditional on G k \mathcal{G}_k G k , the nuisance estimators are fixed, and the observations in F k \mathcal{F}_k F k and F k ′ \mathcal{F}_{k'} F k ′ are independent i.i.d. draws from F 0 F_0 F 0 . For i ∈ F k i \in\mathcal{F}_k i ∈ F k , define
R ^ 1 k i : = m ( W i ; f ^ 0 k , g ^ 0 k , β 0 ) − m ( W i ; f 0 , g 0 , β 0 ) , R ^ 2 k i : = ϕ ( W i ; f ^ 0 k , g ^ 0 k , h 0 , ρ 0 , β 0 ) − ϕ ( W i ; f 0 , g 0 , h 0 , ρ 0 , β 0 ) , R ^ 3 k i : = ϕ ( W i ; f 0 , g 0 , h ^ 0 k , ρ ^ 0 k , β 0 ) − ϕ ( W i ; f 0 , g 0 , h 0 , ρ 0 , β 0 ) . \begin{aligned}
\widehat{R}_{1ki} &:= m(W_i; \widehat{f}_{0k}, \widehat{g}_{0k}, \beta_0) - m(W_i; f_0, g_0, \beta_0), \\
\widehat{R}_{2ki} &:= \phi(W_i; \widehat{f}_{0k}, \widehat{g}_{0k}, h_0, \rho_0, \beta_0) - \phi(W_i; f_0, g_0, h_0, \rho_0, \beta_0), \\
\widehat{R}_{3ki} &:= \phi(W_i; f_0, g_0, \widehat{h}_{0k}, \widehat{\rho}_{0k}, \beta_0) - \phi(W_i; f_0, g_0, h_0, \rho_0, \beta_0).
\end{aligned} R 1 k i R 2 k i R 3 k i := m ( W i ; f 0 k , g 0 k , β 0 ) − m ( W i ; f 0 , g 0 , β 0 ) , := ϕ ( W i ; f 0 k , g 0 k , h 0 , ρ 0 , β 0 ) − ϕ ( W i ; f 0 , g 0 , h 0 , ρ 0 , β 0 ) , := ϕ ( W i ; f 0 , g 0 , h 0 k , ρ 0 k , β 0 ) − ϕ ( W i ; f 0 , g 0 , h 0 , ρ 0 , β 0 ) .
By the definition of δ ^ i k ( W i ) \widehat{\delta}_{ik}(W_i) δ ik ( W i ) ,
ψ ^ i k ( β 0 ) − ψ ( W i ; η 0 , β 0 ) = R ^ 1 k i + R ^ 2 k i + R ^ 3 k i + δ ^ i k ( W i ) . (63) \widehat{\psi}_i^k(\beta_0) - \psi(W_i; \eta_0, \beta_0) = \widehat{R}_{1ki} + \widehat{R}_{2ki} + \widehat{R}_{3ki} + \widehat{\delta}_{ik}(W_i). \tag*{(63)} ψ i k ( β 0 ) − ψ ( W i ; η 0 , β 0 ) = R 1 k i + R 2 k i + R 3 k i + δ ik ( W i ) . (63)
Let d ψ d_{\psi} d ψ denote the fixed dimension of the stacked score, and fix a component ℓ ∈ { 1 , … , d ψ } \ell\in\{1,\ldots,d_{\psi}\} ℓ ∈ { 1 , … , d ψ } . Direct substitution of (7) and (9) shows that this component has one of the following three forms for some t ∈ { 3 , … , T } t \in\{3,\ldots,T\} t ∈ { 3 , … , T } and p < t p < t p < t :
outcome–treatment:
R ^ 1 k i , ℓ + R ^ 2 k i , ℓ = Δ ε i p D ∗ { Δ f 0 , i t ∗ − Δ f ^ 0 k , i t ∗ } , R ^ 3 k i , ℓ = { Δ h 0 , i p ∗ − Δ h ^ 0 k , i p ∗ } Δ ε i t Y ∗ , δ ^ i k , ℓ ( W i ) = { Δ h 0 , i p ∗ − Δ h ^ 0 k , i p ∗ } { Δ f 0 , i t ∗ − Δ f ^ 0 k , i t ∗ } ; \begin{aligned}
\widehat{R}_{1ki,\ell} + \widehat{R}_{2ki,\ell} &= \Delta\varepsilon^{D*}_{ip}\{\Delta f^*_{0,it} - \Delta\widehat{f}^*_{0k,it}\}, \\
\widehat{R}_{3ki,\ell} &= \{\Delta h^*_{0,ip} - \Delta\widehat{h}^*_{0k,ip}\}\Delta\varepsilon^{Y*}_{it}, \\
\widehat{\delta}_{ik,\ell}(W_i) &= \{\Delta h^*_{0,ip} - \Delta\widehat{h}^*_{0k,ip}\}\{\Delta f^*_{0,it} - \Delta\widehat{f}^*_{0k,it}\};
\end{aligned} R 1 k i , ℓ + R 2 k i , ℓ R 3 k i , ℓ δ ik , ℓ ( W i ) = Δ ε i p D ∗ { Δ f 0 , i t ∗ − Δ f 0 k , i t ∗ } , = { Δ h 0 , i p ∗ − Δ h 0 k , i p ∗ } Δ ε i t Y ∗ , = { Δ h 0 , i p ∗ − Δ h 0 k , i p ∗ } { Δ f 0 , i t ∗ − Δ f 0 k , i t ∗ } ;
outcome–mediator:
R ^ 1 k i , ℓ + R ^ 2 k i , ℓ = Δ ε i p M ∗ { Δ f 0 , i t ∗ − Δ f ^ 0 k , i t ∗ } , R ^ 3 k i , ℓ = { Δ ρ 0 , i p ∗ − Δ ρ ^ 0 k , i p ∗ } Δ ε i t Y ∗ , δ ^ i k , ℓ ( W i ) = { Δ ρ 0 , i p ∗ − Δ Δ ρ ^ 0 k , i p ∗ } { Δ f 0 , i t ∗ − Δ f ^ 0 k , i t ∗ } ; \begin{aligned}
\widehat{R}_{1ki,\ell} + \widehat{R}_{2ki,\ell} &= \Delta\varepsilon^{M*}_{ip}\{\Delta f^*_{0,it} - \Delta\widehat{f}^*_{0k,it}\}, \\
\widehat{R}_{3ki,\ell} &= \{\Delta\rho^*_{0,ip} - \Delta\widehat{\rho}^*_{0k,ip}\}\Delta\varepsilon^{Y*}_{it}, \\
\widehat{\delta}_{ik,\ell}(W_i) &= \{\Delta\rho^*_{0,ip} - \Delta\Delta\widehat{\rho}^*_{0k,ip}\}\{\Delta f^*_{0,it} - \Delta\widehat{f}^*_{0k,it}\};
\end{aligned} R 1 k i , ℓ + R 2 k i , ℓ R 3 k i , ℓ δ ik , ℓ ( W i ) = Δ ε i p M ∗ { Δ f 0 , i t ∗ − Δ f 0 k , i t ∗ } , = { Δ ρ 0 , i p ∗ − Δ ρ 0 k , i p ∗ } Δ ε i t Y ∗ , = { Δ ρ 0 , i p ∗ − ΔΔ ρ 0 k , i p ∗ } { Δ f 0 , i t ∗ − Δ f 0 k , i t ∗ } ;
mediator–treatment:
R ^ 1 k i , ℓ + R ^ 2 k i , ℓ = Δ ε i p D ∗ { Δ g 0 , i t ∗ − Δ g ^ 0 k , i t ∗ } , \widehat{R}_{1ki,\ell}+\widehat{R}_{2ki,\ell}=\Delta\varepsilon^{D*}_{ip}\{\Delta g^{*}_{0,it}-\Delta\widehat{g}^{*}_{0k,it}\}, R 1 k i , ℓ + R 2 k i , ℓ = Δ ε i p D ∗ { Δ g 0 , i t ∗ − Δ g 0 k , i t ∗ } ,
R ^ 3 k i , ℓ = { Δ h 0 , i p ∗ − Δ h ^ 0 k , i p ∗ } Δ ε i t M ∗ , \widehat{R}_{3ki,\ell}=\{\Delta h^{*}_{0,ip}-\Delta\widehat{h}^{*}_{0k,ip}\}\Delta\varepsilon^{M*}_{it}, R 3 k i , ℓ = { Δ h 0 , i p ∗ − Δ h 0 k , i p ∗ } Δ ε i t M ∗ ,
δ ^ i k , ℓ ( W i ) = { Δ h 0 , i p ∗ − Δ h ^ 0 k , i p ∗ } { Δ g 0 , i t ∗ − Δ g ^ 0 k , i t ∗ } . \widehat{\delta}_{ik,\ell}(W_i)=\{\Delta h^{*}_{0,ip}-\Delta\widehat{h}^{*}_{0k,ip}\}\{\Delta g^{*}_{0,it}-\Delta\widehat{g}^{*}_{0k,it}\}. δ ik , ℓ ( W i ) = { Δ h 0 , i p ∗ − Δ h 0 k , i p ∗ } { Δ g 0 , i t ∗ − Δ g 0 k , i t ∗ } .
These three cases exhaust all coordinates of the stacked score.
We first record a generic consequence of auxiliary-fold demeaning. Let Q i Q_i Q i and R i R_i R i be two scalar quantities, let Q ‾ l = n − 1 ∑ i ∈ F l Q i \overline{Q}_l=n^{-1}\sum_{i\in\mathcal{F}_l}Q_i Q l = n − 1 ∑ i ∈ F l Q i and R ‾ l = n − 1 ∑ i ∈ F l R i \overline{R}_l=n^{-1}\sum_{i\in\mathcal{F}_l}R_i R l = n − 1 ∑ i ∈ F l R i , and write Q i ∗ = Q i − Q ‾ k ′ Q_i^*=Q_i-\overline{Q}_{k'} Q i ∗ = Q i − Q k ′ and R i ∗ = R i − R ‾ k ′ R_i^*=R_i-\overline{R}_{k'} R i ∗ = R i − R k ′ for i ∈ F k i\in\mathcal{F}_k i ∈ F k . Then
1 N ∑ i ∈ F k Q i ∗ R i ∗ = n N { 1 n ∑ i ∈ F k Q i R i − n Q ‾ k R ‾ k ′ − n Q ‾ k ′ R ‾ k + n Q ‾ k ′ R ‾ k ′ } . (64) \frac{1}{\sqrt{N}}\sum_{i\in\mathcal{F}_k}Q_i^*R_i^*=\sqrt{\frac{n}{N}}\left\{\frac{1}{\sqrt{n}}\sum_{i\in\mathcal{F}_k}Q_iR_i-\sqrt{n}\,\overline{Q}_k\overline{R}_{k'}-\sqrt{n}\,\overline{Q}_{k'}\overline{R}_k+\sqrt{n}\,\overline{Q}_{k'}\overline{R}_{k'}\right\}. \tag*{(64)} N 1 i ∈ F k ∑ Q i ∗ R i ∗ = N n { n 1 i ∈ F k ∑ Q i R i − n Q k R k ′ − n Q k ′ R k + n Q k ′ R k ′ } . (64)
Suppose, conditionally on G k \mathcal{G}_k G k , that E k ( Q i ) = 0 \mathop{\mathrm{E}}_k(Q_i)=0 E k ( Q i ) = 0 , E k ( Q i R i ) = 0 \mathop{\mathrm{E}}_k(Q_iR_i)=0 E k ( Q i R i ) = 0 , E k ( Q i 2 ) = O p ( 1 ) \mathop{\mathrm{E}}_k(Q_i^2)=O_p(1) E k ( Q i 2 ) = O p ( 1 ) , and V a r k ( R i ) = O p ( 1 ) \mathop{\mathrm{Var}}_k(R_i)=O_p(1) Var k ( R i ) = O p ( 1 ) . Let H k \mathcal{H}_k H k additionally contain the auxiliary-fold observations. Conditional on H k \mathcal{H}_k H k , the target-fold products Q i ∗ R i ∗ Q_i^*R_i^* Q i ∗ R i ∗ are i.i.d. and
E ( Q i ∗ R i ∗ ∣ H k ) = Q ‾ k ′ { R ‾ k ′ − E k ( R i ) } . \mathop{\mathrm{E}}(Q_i^*R_i^*\mid\mathcal{H}_k)=\overline{Q}_{k'}\{\overline{R}_{k'}-\mathop{\mathrm{E}}_k(R_i)\}. E ( Q i ∗ R i ∗ ∣ H k ) = Q k ′ { R k ′ − E k ( R i )} .
Moreover, conditional Chebyshev’s inequality gives Q ‾ k ′ = O p ( n − 1 / 2 ) \overline{Q}_{k'}=O_p(n^{-1/2}) Q k ′ = O p ( n − 1/2 ) and R ‾ k ′ − E k ( R i ) = O p ( n − 1 / 2 ) \overline{R}_{k'}-\mathop{\mathrm{E}}_k(R_i)=O_p(n^{-1/2}) R k ′ − E k ( R i ) = O p ( n − 1/2 ) . Hence
n N E ( Q i ∗ R i ∗ ∣ H k ) = o p ( 1 ) . \frac{n}{\sqrt{N}}\mathop{\mathrm{E}}(Q_i^*R_i^*\mid\mathcal{H}_k)=o_p(1). N n E ( Q i ∗ R i ∗ ∣ H k ) = o p ( 1 ) .
If, in addition, E { ( Q i ∗ R i ∗ ) 2 ∣ H k } = o p ( 1 ) \mathop{\mathrm{E}}\{(Q_i^*R_i^*)^2\mid\mathcal{H}_k\}=o_p(1) E {( Q i ∗ R i ∗ ) 2 ∣ H k } = o p ( 1 ) , then
E [ { 1 N ∑ i ∈ F k [ Q i ∗ R i ∗ − E ( Q i ∗ R i ∗ ∣ H k ) ] } 2 | H k ] ≤ n N E { ( Q i ∗ R i ∗ ) 2 ∣ H k } = o p ( 1 ) . \mathop{\mathrm{E}}\left[\left\{\frac{1}{\sqrt{N}}\sum_{i\in\mathcal{F}_k}[Q_i^*R_i^*-\mathop{\mathrm{E}}(Q_i^*R_i^*\mid\mathcal{H}_k)]\right\}^2\middle|\mathcal{H}_k\right]\leq\frac{n}{N}\mathop{\mathrm{E}}\{(Q_i^*R_i^*)^2\mid\mathcal{H}_k\}=o_p(1). E { N 1 i ∈ F k ∑ [ Q i ∗ R i ∗ − E ( Q i ∗ R i ∗ ∣ H k )] } 2 H k ≤ N n E {( Q i ∗ R i ∗ ) 2 ∣ H k } = o p ( 1 ) .
It follows that the left-hand side of (A.39) is o p ( 1 ) o_p(1) o p ( 1 ) . The argument applies componentwise to vector- and matrix-valued products.
For R ^ 1 k i , ℓ + R ^ 2 k i , ℓ \widehat{R}_{1ki,\ell}+\widehat{R}_{2ki,\ell} R 1 k i , ℓ + R 2 k i , ℓ , the factor Q i Q_i Q i is a lagged treatment or mediator innovation difference and R i R_i R i is an estimation error in f 0 f_0 f 0 or g 0 g_0 g 0 . The full-covariate-history restrictions in (5) and (6) imply E k ( Q i ) = E k ( Q i R i ) = 0 \mathbb{E}_k(Q_i)=\mathbb{E}_k(Q_iR_i)=0 E k ( Q i ) = E k ( Q i R i ) = 0 . For R ^ 3 k i , ℓ \widehat{R}_{3ki,\ell} R 3 k i , ℓ , take Q i Q_i Q i to be the later outcome or mediator innovation difference and R i R_i R i to be the corresponding error in h 0 h_0 h 0 or ρ 0 \rho_0 ρ 0 . Because p < t p<t p < t , these errors are functions of histories dated no later than p p p and quantities fixed conditional on G k \mathcal{G}_k G k . Expanding the later differenced innovation into its two level innovations and applying the sequential conditional moment restriction at periods t t t and t − 1 t-1 t − 1 gives again E k ( Q i ) = E k ( Q i R i ) = 0 \mathbb{E}_k(Q_i)=\mathbb{E}_k(Q_iR_i)=0 E k ( Q i ) = E k ( Q i R i ) = 0 . In particular, the identity
Δ ρ ^ 0 k , i p − Δ ρ 0 , i p = Δ g ^ 0 k , i p − Δ g 0 , i p + Δ τ M , i p ′ ( γ ~ k − γ 0 ) \Delta\widehat{\rho}_{0k,ip}-\Delta\rho_{0,ip}=\Delta\widehat{g}_{0k,ip}-\Delta g_{0,ip}+\Delta\tau_{M,ip}^{\prime}(\widetilde{\gamma}_k-\gamma_0) Δ ρ 0 k , i p − Δ ρ 0 , i p = Δ g 0 k , i p − Δ g 0 , i p + Δ τ M , i p ′ ( γ k − γ 0 )
shows that the same argument covers the preliminary coefficient γ ~ k \widetilde{\gamma}_k γ k .
Assumption A1(i)–(iv) supplies the remaining second-moment and weighted second-moment conditions in the generic argument. Therefore,
1 N ∑ i ∈ F k ( R ^ 1 k i + R ^ 2 k i + R ^ 3 k i ) = o p ( 1 ) . (65) \frac{1}{\sqrt{N}}\sum_{i\in\mathcal{F}_k}\left(\widehat{R}_{1ki}+\widehat{R}_{2ki}+\widehat{R}_{3ki}\right)=o_p(1). \tag*{(65)} N 1 i ∈ F k ∑ ( R 1 k i + R 2 k i + R 3 k i ) = o p ( 1 ) . (65)
It remains to control the interaction remainder. Suppose first that Assumption A2(i) holds and let H k \mathcal{H}_k H k be the sigma-field generated by G k \mathcal{G}_k G k , the auxiliary-fold observations, and the fold partition. Conditional on H k \mathcal{H}_k H k , the variables δ ^ i k ( W i ) \widehat{\delta}_{ik}(W_i) δ ik ( W i ) , i ∈ F k i\in\mathcal{F}_k i ∈ F k , are i.i.d. Hence
E [ ∥ 1 N ∑ i ∈ F k { δ ^ i k ( W i ) − E ( δ ^ i k ( W i ) ∣ H k ) } ∥ 2 ∣ H k ] ≤ n N ∫ ∥ δ ^ i k ( w ) ∥ 2 F 0 ( d w ) = o p ( 1 ) . \mathbb{E}\left[\left.\left\|\frac{1}{\sqrt{N}}\sum_{i\in\mathcal{F}_k}\left\{\widehat{\delta}_{ik}(W_i)-\mathbb{E}\left(\widehat{\delta}_{ik}(W_i)\mid\mathcal{H}_k\right)\right\}\right\|^2\right|\mathcal{H}_k\right]\leq\frac{n}{N}\int\left\|\widehat{\delta}_{ik}(w)\right\|^2F_0(dw)=o_p(1). E N 1 i ∈ F k ∑ { δ ik ( W i ) − E ( δ ik ( W i ) ∣ H k ) } 2 H k ≤ N n ∫ δ ik ( w ) 2 F 0 ( d w ) = o p ( 1 ) .
Moreover,
∥ 1 N ∑ i ∈ F k E ( δ ^ i k ( W i ) ∣ H k ) ∥ = n N ∥ ∫ δ ^ i k ( w ) F 0 ( d w ) ∥ ≤ N ∥ ∫ δ ^ i k ( w ) F 0 ( d w ) ∥ = o p ( 1 ) . \left\|\frac{1}{\sqrt{N}}\sum_{i\in\mathcal{F}_k}\mathbb{E}\left(\widehat{\delta}_{ik}(W_i)\mid\mathcal{H}_k\right)\right\|=\frac{n}{\sqrt{N}}\left\|\int\widehat{\delta}_{ik}(w)F_0(dw)\right\|\leq\sqrt{N}\left\|\int\widehat{\delta}_{ik}(w)F_0(dw)\right\|=o_p(1). N 1 i ∈ F k ∑ E ( δ ik ( W i ) ∣ H k ) = N n ∫ δ ik ( w ) F 0 ( d w ) ≤ N ∫ δ ik ( w ) F 0 ( d w ) = o p ( 1 ) .
Thus
1 N ∑ i ∈ F k δ ^ i k ( W i ) = o p ( 1 ) . (66) \frac{1}{\sqrt{N}}\sum_{i\in\mathcal{F}_k}\widehat{\delta}_{ik}(W_i)=o_p(1). \tag*{(66)} N 1 i ∈ F k ∑ δ ik ( W i ) = o p ( 1 ) . (66)
The same conclusion follows immediately from alternative (ii) by the triangle inequality and from alternative (iii) by assumption.
Combining (A.38), (A.40), and (A.41), and then summing over the fixed number of folds, yields
1 N ∑ k = 1 K ∑ i ∈ F k ψ ^ i k ( β 0 ) = 1 N ∑ k = 1 K ∑ i ∈ F k ψ ( W i ; η 0 , β 0 ) + o p ( 1 ) . \frac{1}{\sqrt{N}}\sum_{k=1}^{K}\sum_{i\in\mathcal{F}_k}\widehat{\psi}^{k}_{i}(\beta_{0})=\frac{1}{\sqrt{N}}\sum_{k=1}^{K}\sum_{i\in\mathcal{F}_k}\psi(W_i;\eta_{0},\beta_{0})+o_p(1). N 1 k = 1 ∑ K i ∈ F k ∑ ψ i k ( β 0 ) = N 1 k = 1 ∑ K i ∈ F k ∑ ψ ( W i ; η 0 , β 0 ) + o p ( 1 ) .
This proves the lemma. Q.E.D.
Proof of Lemma 2
Let n : = N / K n := N/K n := N / K . For q ∈ { Y , M } q \in\{Y,M\} q ∈ { Y , M } and a fold l l l , define the blockwise fold means
A ‾ l q : = 1 n ∑ i ∈ F l A i q , T ‾ l q : = 1 n ∑ i ∈ F l T i q , \overline{A}^{q}_{l}:=\frac{1}{n}\sum_{i\in\mathcal{F}_l}A^{q}_{i},\qquad\overline{\mathcal{T}}^{q}_{l}:=\frac{1}{n}\sum_{i\in\mathcal{F}_l}\mathcal{T}^{q}_{i}, A l q := n 1 i ∈ F l ∑ A i q , T l q := n 1 i ∈ F l ∑ T i q ,
and write
A i , k q ∗ : = A i q − A ‾ k ′ q , T i , k q ∗ : = T i q − T ‾ k ′ q . A^{q*}_{i,k}:=A^{q}_{i}-\overline{A}^{q}_{k'},\qquad\mathcal{T}^{q*}_{i,k}:=\mathcal{T}^{q}_{i}-\overline{\mathcal{T}}^{q}_{k'}. A i , k q ∗ := A i q − A k ′ q , T i , k q ∗ := T i q − T k ′ q .
Since the residual vectors are affine in θ \theta θ and γ \gamma γ , respectively, for every β = ( θ ′ , γ ′ ) ′ \beta=(\theta^{\prime},\gamma^{\prime})^{\prime} β = ( θ ′ , γ ′ ) ′ ,
∂ ψ ^ i k ( β ) ∂ β ′ = − ( A ^ i , k Y T i , k Y ∗ 0 0 A ^ i , k M T i , k M ∗ ) . \frac{\partial\widehat{\psi}^{k}_{i}(\beta)}{\partial\beta^{\prime}}=-\begin{pmatrix}
\widehat{A}^{Y}_{i,k}\mathcal{T}^{Y*}_{i,k} & 0\\
0 & \widehat{A}^{M}_{i,k}\mathcal{T}^{M*}_{i,k}
\end{pmatrix}. ∂ β ′ ∂ ψ i k ( β ) = − ( A i , k Y T i , k Y ∗ 0 0 A i , k M T i , k M ∗ ) .
The right-hand side does not depend on β \beta β . Hence, for any possibly data-dependent β ‾ \overline{\beta} β ,
∂ ψ ^ i k ( β ‾ ) ∂ β ′ = ∂ ψ ^ i k ( β 0 ) ∂ β ′ . (67) \frac{\partial\widehat{\psi}^{k}_{i}(\overline{\beta})}{\partial\beta^{\prime}}=\frac{\partial\widehat{\psi}^{k}_{i}(\beta_{0})}{\partial\beta^{\prime}}. \tag*{(67)} ∂ β ′ ∂ ψ i k ( β ) = ∂ β ′ ∂ ψ i k ( β 0 ) . (67)
Let H k \mathcal{H}_k H k be the sigma-field generated by the observations used to estimate η ^ k \widehat{\eta}_k η k , the observations in the auxiliary fold F k ′ \mathcal{F}_{k'} F k ′ , and the fold partition. Conditional on H k \mathcal{H}_k H k , the observations { W i : i ∈ F k } \{W_i:i\in\mathcal{F}_k\} { W i : i ∈ F k } are i.i.d. with distribution F 0 F_0 F 0 . Therefore, by the conditional Markov inequality, the triangle inequality, and Assumption A3(ii),
1 n ∑ i ∈ F k ∂ ψ ( W i ; η ^ k , β 0 ) ∂ β ′ = 1 n ∑ i ∈ F k ∂ ψ ( W i ; η 0 , β 0 ) ∂ β ′ + o p ( 1 ) . (68) \frac{1}{n}\sum_{i\in\mathcal{F}_k}\frac{\partial\psi(W_i;\widehat{\eta}_k,\beta_0)}{\partial\beta^{\prime}}=\frac{1}{n}\sum_{i\in\mathcal{F}_k}\frac{\partial\psi(W_i;\eta_0,\beta_0)}{\partial\beta^{\prime}}+o_p(1). \tag*{(68)} n 1 i ∈ F k ∑ ∂ β ′ ∂ ψ ( W i ; η k , β 0 ) = n 1 i ∈ F k ∑ ∂ β ′ ∂ ψ ( W i ; η 0 , β 0 ) + o p ( 1 ) . (68)
At the true nuisance values, the instrument matrices in the score are A i , k q ∗ A^{q*}_{i,k} A i , k q ∗ , q ∈ { Y , M } q\in\{Y,M\} q ∈ { Y , M } . The conditional moment restrictions imply
E ( A i Y ) = 0 , E ( A i M ) = 0. (69) \mathbb{E}(A^{Y}_{i})=0,\qquad\mathbb{E}(A^{M}_{i})=0. \tag*{(69)} E ( A i Y ) = 0 , E ( A i M ) = 0. (69)
Since T T T is fixed, Assumption A1(i), Assumption A3(i), and the cross-sectional i.i.d. condition yield, for q ∈ { Y , M } q \in\{Y, M\} q ∈ { Y , M } ,
A ‾ k q = o p ( 1 ) , A ‾ k ′ q = o p ( 1 ) , T ‾ k q = O p ( 1 ) , T ‾ k ′ q = O p ( 1 ) , \overline{A}^{q}_{k}=o_p(1), \qquad\overline{A}^{q}_{k'}=o_p(1), \qquad\overline{\mathcal{T}}^{q}_{k}=O_p(1), \qquad\overline{\mathcal{T}}^{q}_{k'}=O_p(1), A k q = o p ( 1 ) , A k ′ q = o p ( 1 ) , T k q = O p ( 1 ) , T k ′ q = O p ( 1 ) ,
1 n ∑ i ∈ F k A i q T i q = E ( A i q T i q ) + o p ( 1 ) . (70) \frac{1}{n}\sum_{i\in\mathcal{F}_{k}} A^{q}_{i}\mathcal{T}^{q}_{i}
=\mathop{\rm E}\left(A^{q}_{i}\mathcal{T}^{q}_{i}\right)+o_p(1). \tag*{(70)} n 1 i ∈ F k ∑ A i q T i q = E ( A i q T i q ) + o p ( 1 ) . (70)
Moreover,
1 n ∑ i ∈ F k A i , k q ∗ T i , k q ∗ = 1 n ∑ i ∈ F k A i q T i q − A ‾ k q T ‾ k ′ q − A ‾ k ′ q T ‾ k q + A ‾ k ′ q T ‾ k ′ q , = E ( A i q T i q ) + o p ( 1 ) , \begin{aligned}
\frac{1}{n}\sum_{i\in\mathcal{F}_{k}}A^{q^{*}}_{i,k}\mathcal{T}^{q^{*}}_{i,k}
=\frac{1}{n}\sum_{i\in\mathcal{F}_{k}}A^{q}_{i}\mathcal{T}^{q}_{i}
-\overline{A}^{q}_{k}\overline{\mathcal{T}}^{q}_{k'}
-\overline{A}^{q}_{k'}\overline{\mathcal{T}}^{q}_{k}
+\overline{A}^{q}_{k'}\overline{\mathcal{T}}^{q}_{k'}, \\
&=\mathop{\rm E}\left(A^{q}_{i}\mathcal{T}^{q}_{i}\right)+o_p(1),
\end{aligned} n 1 i ∈ F k ∑ A i , k q ∗ T i , k q ∗ = n 1 i ∈ F k ∑ A i q T i q − A k q T k ′ q − A k ′ q T k q + A k ′ q T k ′ q , = E ( A i q T i q ) + o p ( 1 ) ,
where the last equality follows from (A.44)–(A.45). Hence
1 n ∑ i ∈ F k ∂ ψ ( W i ; η 0 , β 0 ) ∂ β ′ = G + o p ( 1 ) . \frac{1}{n}\sum_{i\in\mathcal{F}_{k}}
\frac{\partial\psi(W_i;\eta_0,\beta_0)}{\partial\beta'}
=G+o_p(1). n 1 i ∈ F k ∑ ∂ β ′ ∂ ψ ( W i ; η 0 , β 0 ) = G + o p ( 1 ) .
Combining this result with (A.43), using (A.42), and averaging over the fixed number of folds gives
1 N ∑ k = 1 K ∑ i ∈ F k ∂ ψ ^ i k ( β ‾ ) ∂ β ′ = G + o p ( 1 ) , \frac{1}{N}\sum_{k=1}^{K}\sum_{i\in\mathcal{F}_{k}}
\frac{\partial\widehat{\psi}^{k}_{i}(\overline{\beta})}{\partial\beta'}
=G+o_p(1), N 1 k = 1 ∑ K i ∈ F k ∑ ∂ β ′ ∂ ψ i k ( β ) = G + o p ( 1 ) ,
which proves the result. Q.E.D.
Proof of Theorem A1
Let n : = N / K n:=N/K n := N / K and define
ψ ^ N ( β ) : = 1 N ∑ k = 1 K ∑ i ∈ F k ψ ^ i k ( β ) , G ^ N : = 1 N ∑ k = 1 K ∑ i ∈ F k ∂ ψ ^ i k ( β ) ∂ β ′ . \widehat{\psi}_{N}(\beta):=\frac{1}{N}\sum_{k=1}^{K}\sum_{i\in\mathcal{F}_{k}}\widehat{\psi}^{k}_{i}(\beta), \qquad
\widehat{G}_{N}:=\frac{1}{N}\sum_{k=1}^{K}\sum_{i\in\mathcal{F}_{k}}\frac{\partial\widehat{\psi}^{k}_{i}(\beta)}{\partial\beta'}. ψ N ( β ) := N 1 k = 1 ∑ K i ∈ F k ∑ ψ i k ( β ) , G N := N 1 k = 1 ∑ K i ∈ F k ∑ ∂ β ′ ∂ ψ i k ( β ) .
Since the residual vectors are affine in θ \theta θ and γ \gamma γ , while the fold-specific instrument matrices do not depend on the final GMM candidate β \beta β , the Jacobian G ^ N \widehat{G}_{N} G N does not depend on its evaluation point. Hence, for every β ∈ R s Y + s M \beta\in\mathbb{R}^{s_Y+s_M} β ∈ R s Y + s M ,
ψ ^ N ( β ) = ψ ^ N ( β 0 ) + G ^ N ( β − β 0 ) . (71) \widehat{\psi}_{N}(\beta)=\widehat{\psi}_{N}(\beta_0)+\widehat{G}_{N}(\beta-\beta_0). \tag*{(71)} ψ N ( β ) = ψ N ( β 0 ) + G N ( β − β 0 ) . (71)
By Lemma 2 and Ω ^ → p Ω \widehat{\Omega} \xrightarrow{p} \Omega Ω p Ω ,
G ^ N → p G , G ^ N ′ Ω ^ G ^ N → p G ′ Ω G . \widehat{G}_N \xrightarrow{p} G,\qquad\widehat{G}_N^{\prime}\widehat{\Omega}\widehat{G}_N \xrightarrow{p} G^{\prime}\Omega G. G N p G , G N ′ Ω G N p G ′ Ω G .
Since G ′ Ω G G^{\prime}\Omega G G ′ Ω G is nonsingular, G ^ N ′ Ω ^ G ^ N \widehat{G}_N^{\prime}\widehat{\Omega}\widehat{G}_N G N ′ Ω G N is nonsingular with probability approaching one. On this event, the first-order condition for the quadratic GMM criterion and (A.46) give
N ( β ^ 0 D − β 0 ) = − C ^ N N ψ ^ N ( β 0 ) , (72) \sqrt{N}(\widehat{\beta}_0^D-\beta_0)=-\widehat{C}_N\sqrt{N}\widehat{\psi}_N(\beta_0), \tag*{(72)} N ( β 0 D − β 0 ) = − C N N ψ N ( β 0 ) , (72)
C ^ N : = ( G ^ N ′ Ω ^ G ^ N ) − 1 G ^ N ′ Ω ^ → p C : = ( G ′ Ω G ) − 1 G ′ Ω . \widehat{C}_N:=\left(\widehat{G}_N^{\prime}\widehat{\Omega}\widehat{G}_N\right)^{-1}\widehat{G}_N^{\prime}\widehat{\Omega}\xrightarrow{p}C:=\left(G^{\prime}\Omega G\right)^{-1}G^{\prime}\Omega. C N := ( G N ′ Ω G N ) − 1 G N ′ Ω p C := ( G ′ Ω G ) − 1 G ′ Ω.
We next obtain the limit of the score at β 0 \beta_0 β 0 . For q ∈ { Y , M } q\in\{Y,M\} q ∈ { Y , M } , write
e ‾ l q : = 1 n ∑ i ∈ F l e i q , A ‾ l q : = 1 n ∑ i ∈ F l A i q . \overline{e}^{q}_{l}:=\frac{1}{n}\sum_{i\in\mathcal{F}_l}e_i^q,\qquad\overline{A}^{q}_{l}:=\frac{1}{n}\sum_{i\in\mathcal{F}_l}A_i^q. e l q := n 1 i ∈ F l ∑ e i q , A l q := n 1 i ∈ F l ∑ A i q .
At the true nuisance and parameter values, the auxiliary-fold transformed score satisfies, for i ∈ F k i\in\mathcal{F}_k i ∈ F k ,
ψ ( W i ; η 0 , β 0 ) = ( ( A i Y − A ‾ k ′ Y ) ( e i Y − e ‾ k ′ Y ) ( A i M − A ‾ k ′ M ) ( e i M − e ‾ k ′ M ) ) . (73) \psi(W_i;\eta_0,\beta_0)=
\begin{pmatrix}
\left(A_i^Y-\overline{A}_{k'}^Y\right)\left(e_i^Y-\overline{e}_{k'}^Y\right)\\
\left(A_i^M-\overline{A}_{k'}^M\right)\left(e_i^M-\overline{e}_{k'}^M\right)
\end{pmatrix}. \tag*{(73)} ψ ( W i ; η 0 , β 0 ) = ( A i Y − A k ′ Y ) ( e i Y − e k ′ Y ) ( A i M − A k ′ M ) ( e i M − e k ′ M ) . (73)
The conditional moment restrictions and Assumption A1 imply, for q ∈ { Y , M } q\in\{Y,M\} q ∈ { Y , M } ,
E ( A i q ) = 0 , E ( e i q ) = 0 , E ∥ A i q ∥ F 2 + E ∥ e i q ∥ 2 < ∞ . \mathbb{E}\left(A_i^q\right)=0,\qquad\mathbb{E}\left(e_i^q\right)=0,\qquad\mathbb{E}\lVert A_i^q\rVert_F^2+\mathbb{E}\lVert e_i^q\rVert^2<\infty. E ( A i q ) = 0 , E ( e i q ) = 0 , E ∥ A i q ∥ F 2 + E ∥ e i q ∥ 2 < ∞.
Consequently,
A ‾ l q = O p ( n − 1 / 2 ) , e ‾ l q = O p ( n − 1 / 2 ) \overline{A}_l^q=O_p\left(n^{-1/2}\right),\qquad\overline{e}_l^q=O_p\left(n^{-1/2}\right) A l q = O p ( n − 1/2 ) , e l q = O p ( n − 1/2 )
for every fold l l l . Expanding the products in (A.48) gives
1 N ∑ i ∈ F k { ( A i q − A ‾ k ′ q ) ( e i q − e ‾ k ′ q ) − A i q e i q } = − n N ( A ‾ k ′ q e ‾ k ′ q + A ‾ k ′ q e ‾ k ′ q − A ‾ k ′ q e ‾ k ′ q ) = o p ( 1 ) . \begin{aligned}
\frac{1}{\sqrt{N}}\sum_{i\in\mathcal{F}_k}\left\{\left(A_i^q-\overline{A}_{k'}^q\right)\left(e_i^q-\overline{e}_{k'}^q\right)-A_i^q e_i^q\right\}
&=-\frac{n}{\sqrt{N}}\left(\overline{A}_{k'}^q\overline{e}_{k'}^q+\overline{A}_{k'}^q\overline{e}_{k'}^q-\overline{A}_{k'}^q\overline{e}_{k'}^q\right)\\
&=o_p(1).
\end{aligned} N 1 i ∈ F k ∑ { ( A i q − A k ′ q ) ( e i q − e k ′ q ) − A i q e i q } = − N n ( A k ′ q e k ′ q + A k ′ q e k ′ q − A k ′ q e k ′ q ) = o p ( 1 ) .
Since K K K is fixed, summing over folds and using Lemma 1 yields
N ψ ^ N ( β 0 ) = 1 N ∑ i = 1 N ψ ~ i + o p ( 1 ) . \sqrt{N}\widehat{\psi}_N(\beta_0)=\frac{1}{\sqrt{N}}\sum_{i=1}^{N}\widetilde{\psi}_i+o_p(1). N ψ N ( β 0 ) = N 1 i = 1 ∑ N ψ i + o p ( 1 ) .
For p < t p < t p < t , each component of the lagged innovation instruments is orthogonal to the later outcome or mediator innovation difference under (4) , (5) , and (6) . Therefore E ( ψ ~ i ) = 0 E(\widetilde{\psi}_i) = 0 E ( ψ i ) = 0 . Under (15) , the vectors ψ ~ i \widetilde{\psi}_i ψ i are i.i.d., and Assumption A1(i) gives a finite second moment. The multivariate central limit theorem thus gives
1 N ∑ i = 1 N ψ ~ i → d N ( 0 , Ψ ) . (74) \frac{1}{\sqrt{N}}\sum_{i=1}^{N}\widetilde{\psi}_i \xrightarrow{d} N(0,\mathbf{\Psi}). \tag*{(74)} N 1 i = 1 ∑ N ψ i d N ( 0 , Ψ ) . (74)
Combining (A.47)–(A.49) and applying Slutsky’s theorem yields
N ( β ^ 0 D − β 0 ) = − ( G ′ Ω G ) − 1 G ′ Ω 1 N ∑ i = 1 N ψ ~ i + o p ( 1 ) → d N ( 0 , V β ) , \sqrt{N}(\widehat{\beta}^{D}_{0}-\beta_{0})=-(G^{\prime}\Omega G)^{-1}G^{\prime}\Omega\frac{1}{\sqrt{N}}\sum_{i=1}^{N}\widetilde{\psi}_i+o_p(1)\xrightarrow{d}N(0,V_{\beta}), N ( β 0 D − β 0 ) = − ( G ′ Ω G ) − 1 G ′ Ω N 1 i = 1 ∑ N ψ i + o p ( 1 ) d N ( 0 , V β ) ,
which proves the theorem. Q.E.D.
Proof of Theorem A2
Lemma 2 gives G ^ → p G \widehat{G}\xrightarrow{p}G G p G . It remains to establish Ψ ^ → p Ψ \widehat{\mathbf{\Psi}}\xrightarrow{p}\mathbf{\Psi} Ψ p Ψ . For i ∈ F k i\in\mathcal{F}_k i ∈ F k , write
ψ ^ i − ψ ~ i = { ψ ( W i ; η ^ k , β ^ 0 D ) − ψ ( W i ; η ^ k , β 0 ) } + { ψ i k ( β 0 ) − ψ ( W i ; η 0 , β 0 ) } + { ψ ( W i ; η 0 , β 0 ) − ψ ~ i } . \widehat{\psi}_i-\widetilde{\psi}_i=\{\psi(W_i;\widehat{\eta}_k,\widehat{\beta}^{D}_{0})-\psi(W_i;\widehat{\eta}_k,\beta_0)\}
+\{\psi_i^k(\beta_0)-\psi(W_i;\eta_0,\beta_0)\}+\{\psi(W_i;\eta_0,\beta_0)-\widetilde{\psi}_i\}. ψ i − ψ i = { ψ ( W i ; η k , β 0 D ) − ψ ( W i ; η k , β 0 )} + { ψ i k ( β 0 ) − ψ ( W i ; η 0 , β 0 )} + { ψ ( W i ; η 0 , β 0 ) − ψ i } .
The first term converges to zero in empirical mean square by the additional condition in the proposition and the conditional law of large numbers. By the decomposition (A.38), Assumption A1(ii)–(iv), and the second additional condition in the proposition, the same is true of the second term. For the third term, (A.48) and the bounds A ‾ k ′ q = O p ( n − 1 / 2 ) \overline{A}^{q}_{k'}=O_p(n^{-1/2}) A k ′ q = O p ( n − 1/2 ) and e ‾ k ′ q = O p ( n − 1 / 2 ) \overline{e}^{q}_{k'}=O_p(n^{-1/2}) e k ′ q = O p ( n − 1/2 ) imply
1 N ∑ k = 1 K ∑ i ∈ F k ∥ ψ ( W i ; η 0 , β 0 ) − ψ ~ i ∥ 2 = o p ( 1 ) . \frac{1}{N}\sum_{k=1}^{K}\sum_{i\in\mathcal{F}_k}\|\psi(W_i;\eta_0,\beta_0)-\widetilde{\psi}_i\|^2=o_p(1). N 1 k = 1 ∑ K i ∈ F k ∑ ∥ ψ ( W i ; η 0 , β 0 ) − ψ i ∥ 2 = o p ( 1 ) .
Consequently,
1 N ∑ k = 1 K ∑ i ∈ F k ∥ ψ ^ i − ψ ~ i ∥ 2 = o p ( 1 ) . (75) \frac{1}{N}\sum_{k=1}^{K}\sum_{i\in\mathcal{F}_k}\|\widehat{\psi}_i-\widetilde{\psi}_i\|^2=o_p(1). \tag*{(75)} N 1 k = 1 ∑ K i ∈ F k ∑ ∥ ψ i − ψ i ∥ 2 = o p ( 1 ) . (75)
Let r i : = ψ ^ i − ψ ~ i r_i:=\widehat{\psi}_i-\widetilde{\psi}_i r i := ψ i − ψ i . The identity a a ′ − b b ′ = ( a − b ) a ′ + b ( a − b ) ′ aa^{\prime}-bb^{\prime}=(a-b)a^{\prime}+b(a-b)^{\prime} a a ′ − b b ′ = ( a − b ) a ′ + b ( a − b ) ′ and the Cauchy–Schwarz inequality yield
∥ Ψ ^ − 1 N ∑ i = 1 N ψ ~ i ψ ~ i ′ ∥ F ≤ ( 1 N ∑ i = 1 N ∥ r i ∥ 2 ) 1 / 2 { ( 1 N ∑ i = 1 N ∥ ψ ^ i ∥ 2 ) 1 / 2 + ( 1 N ∑ i = 1 N ∥ ψ ~ i ∥ 2 ) 1 / 2 } = o p ( 1 ) . \begin{aligned}
\left\|\widehat{\mathbf{\Psi}}-\frac{1}{N}\sum_{i=1}^{N}\widetilde{\psi}_i\widetilde{\psi}_i^{\prime}\right\|_{F} \\
&\le\left(\frac{1}{N}\sum_{i=1}^{N}\lVert r_i\rVert^2\right)^{1/2}\left\{\left(\frac{1}{N}\sum_{i=1}^{N}\lVert\hat{\psi}_i\rVert^2\right)^{1/2}+\left(\frac{1}{N}\sum_{i=1}^{N}\lVert\tilde{\psi}_i\rVert^2\right)^{1/2}\right\}=o_p(1).
\end{aligned} Ψ − N 1 i = 1 ∑ N ψ i ψ i ′ F ≤ ( N 1 i = 1 ∑ N ∥ r i ∥ 2 ) 1/2 ⎩ ⎨ ⎧ ( N 1 i = 1 ∑ N ∥ ψ ^ i ∥ 2 ) 1/2 + ( N 1 i = 1 ∑ N ∥ ψ ~ i ∥ 2 ) 1/2 ⎭ ⎬ ⎫ = o p ( 1 ) .
where (A.50) and the law of large numbers imply that the bracketed term is O p ( 1 ) O_p(1) O p ( 1 ) . Since
1 N ∑ i = 1 N ψ ~ i ψ ~ i ′ → p Ψ , \frac{1}{N}\sum_{i=1}^{N}\tilde{\psi}_i\tilde{\psi}_i^{\prime}\xrightarrow{p}\boldsymbol{\Psi}, N 1 i = 1 ∑ N ψ ~ i ψ ~ i ′ p Ψ ,
we obtain Ψ ^ → p Ψ \widehat{\boldsymbol{\Psi}}\xrightarrow{p}\boldsymbol{\Psi} Ψ p Ψ . Finally, Ω ^ → p Ω \widehat{\boldsymbol{\Omega}}\xrightarrow{p}\boldsymbol{\Omega} Ω p Ω , G ^ → p G \widehat{\boldsymbol{G}}\xrightarrow{p}\boldsymbol{G} G p G , and the nonsingularity of G ′ Ω G \boldsymbol{G}^{\prime}\boldsymbol{\Omega}\boldsymbol{G} G ′ Ω G imply
V ^ β → p V β \widehat{V}_{\beta}\xrightarrow{p}V_{\beta} V β p V β
by the continuous mapping theorem. Q.E.D.