EconBase
← Back to paper

Continuous difference-in-differences with double/debiased machine learning

Extracted main text — title through conclusion, appendix excluded. This is what our citation measures are computed over, published so the extraction can be checked by eye.

64,862 characters · 10 sections · 102 citation commands

Rendered from LaTeX for readability, not typeset faithfully. Citation keys are highlighted; maths is left as source; figures, tables and equation environments are summarised rather than reproduced; unrecognised commands are greyed out so nothing is silently dropped. Email addresses are removed.

Continuous difference-in-differences with double/debiased machine learning

\allowdisplaybreaks

abstractThis paper extends difference-in-differences to settings with continuous treatments. Specifically, the average treatment effect on the treated (ATT) at any level of treatment intensity is identified under a conditional parallel trends assumption. Estimating the ATT in this framework requires first estimating infinite-dimensional nuisance parameters, particularly the conditional density of the continuous treatment, which can introduce substantial bias. To address this challenge, we propose estimators for the causal parameters under the double/debiased machine learning framework and establish their asymptotic normality. Additionally, we provide consistent variance estimators and construct uniform confidence bands based on a multiplier bootstrap procedure. To demonstrate the effectiveness of our approach, we revisit a previous study on the 1983 Medicare Prospective Payment System reform, reframing it as a DiD with continuous treatment and non-parametrically estimating its effects. Keywords: Difference-in-differences, causal inference, continuous treatment, machine learning

Introduction

Difference-in-differences (DiD) is one of the most widely used research designs in empirical work. While conventional DiD settings typically focus on binary or discrete multi-valued treatments, there is growing interest in extending DiD to continuous treatments. The motivation for continuous DiD is clear: the treatment group rarely receives interventions at a constant level, and treatment effects can vary with the intensity or “dose” of the treatment. Thus, rather than comparing treated and control groups before and after an intervention at an aggregate level, one can further investigate how outcomes vary across different treatment intensities within the treated group.

Continuous treatments are prevalent in many empirical settings. For instance, individuals may experience varying levels of exposure to policy interventions, marketing campaigns, or environmental pollutants, all of which can be modeled as continuous treatments. Several recent studies have explored DiD with continuous treatments, including ZDS2022 on the impact of shutting down online advertising sites, CJLR23 on racial discrimination in public accommodations, and AGHP22 on the effects of the expanded child tax credit.

Despite its widespread use in empirical research, the theoretical foundation for continuous DiD remains relatively underdeveloped, particularly in comparison to the extensive body of literature on DiD with binary or discrete treatments (see RSBP23, DD2023, CALL2023 for recent overviews). A few recent studies have begun to bridge this gap, notably CDPV2022, DHS2021, and CGS2024. For instance, DHS2021 extend the change-in-changes model of AI2006 to accommodate continuous treatments, while CDPV2022 examine the average slope of stayers in the continuous DiD setting. Our paper is closely related to CGS2024, which studies continuous DiD in the commonly used two-way fixed effect (TWFE) regression framework. CGS2024 demonstrate that, under TWFE, the regression parameter of interest can be decomposed as weighted integrals of either the average treatment parameters across treatment intensities with potentially negative weights or average causal responses with selection bias but nonnegative weights. They also provide data-driven non-parametric estimators for these causal parameters that are rate optimal.

In this paper, we focus on the average treatment effect on the treated (ATT) for any given continuous treatment intensity. Although this parameter is one of several investigated in CGS2024, our primary contribution is to incorporate covariates non-parametrically into both the identification and estimation procedures. Specifically, we modify the parallel trends assumption in CGS2024 by conditioning on covariates in a manner analogous to the “conditional parallel trends" assumption used in DiD for binary or discrete treatments; see HIT97,HIST98, Abadie2005, Chang2020, and SZ2020, for example. As noted in Abadie2005, an unconditional parallel trends assumption can be restrictive if covariates that influence outcome dynamics have different distributions across treatment and control groups. By conditioning on such covariates, we obtain a more robust framework for identifying and estimating the ATT in continuous treatment settings.

We first establish identification results analogous to those in Abadie2005, adapted to the continuous treatment setting. Based on these identification results, a naive estimator for the ATT can be constructed in two steps. First, one estimates several nuisance parameters from the identification results, including the conditional density of the continuous treatment. In the second step, the nuisance estimates are substituted into a simple average to obtain the estimator of the causal parameter. However, for potentially high-dimensional controls, while one may employ machine learning methods to estimate the nuisance parameters, doing so can introduce substantial bias in the causal parameter estimation (see CCDDHNR and the references therein). Moreover, reusing the same sample for both nuisance and causal parameter estimation can result in additional overfitting bias. To address these concerns, we adopt the double/debiased machine learning (DML) framework studied in CCDDHNR, which uses orthogonalization and cross-fitting to reduce the influence of nuisance parameter estimation on causal estimates.

Previous studies have adopted similar strategies in related settings. For instance, Chang2020 considers the DML framework for DiD with binary or discrete treatments, and SZ2020 proposes efficient doubly robust estimators for DiD with binary treatment. We contribute to and extend this literature to the continuous treatment setting. In particular, in place of the usual propensity score for the treated group, our setting requires the conditional density of the continuous treatment, which poses additional difficulties for directly applying DML methods, often involving only conditional mean functions as the nuisance parameters. To circumvent this, we introduce an approximate causal parameter $ATT_h$ using a kernel function. As the kernel bandwidth shrinks, $ATT_h$ converges to the true $ATT$. Importantly, by focusing on $ATT_h$, we can replace the conditional density with a conditional mean, which allows us to apply the existing DML results. We then derive orthogonal scores for both panel and repeated cross-sectional cases and construct corresponding DML estimators. Building on CCK2014a, CCK2014b, CCDDHNR, and FHLZ22, we establish the asymptotic normality of these estimators and show that the asymptotic bias becomes negligible under an appropriate undersmoothing kernel bandwidth. Additionally, we provide consistent variance estimators via cross-fitting and develop uniform confidence bands for the treatment curve using a multiplier bootstrap procedure. The results from our carefully designed simulation studies suggest that our estimators perform well.

To illustrate the usefulness of our method, we revisit AF2008, which examines the impact of the 1983 Medicare payment system (PPS) reform on the healthcare industry. Since the PPS reform affected hospitals with varying proportions of Medicare inpatients differently, the share of Medicare inpatients can be interpreted as a continuous treatment variable. This makes AF2008 an exemplary case for applying our methods. Thus, we non-parametrically estimate the ATTs of the PPS reform in a continuous DiD context, providing a more detailed understanding of the effects of this policy reform. In particular, contrasting with the linear estimates from AF2008, our results suggest significant heterogeneity in the impact of the PPS reform across hospitals with different shares of Medicare inpatients.

We note that the kernel smoothing has been previously considered in the causal inference literature with continuous treatment. For example, KMMS17 studies average potential outcomes under a continuous treatment, proposing a doubly robust signal and a two-step estimation procedure involving a pseudo-outcome and local kernel linear regression. Along similar lines, SC2021 employs series methods to establish uniform asymptotic results. HLM25 recently adopted a similar framework as KMMS17 to establish identification and estimation results on the average dose effect on treated. This causal parameter differs from ours in that it relies on different sets of parallel trends assumptions and it is an average dose-response on the entire treated group, akin to the average potential outcome. It is important to emphasize that while KMMS17 and HLM25 also employ the kernel techniques, their approach differs from ours in non-trivial ways. We use kernels primarily to approximate the original causal parameters, facilitating the construction of orthogonal scores, after which the final estimation proceeds as a simple average; see BL2017 for a more general discussion on this method. This contrasts with their approach, which uses kernel regressions to estimate the conditional mean of a pseudo-outcome. In this respect, our work is also related to KZ2018, SUZ19, and CYYL25, all of which consider continuous treatments and employ kernel-based moment functions to study the average potential outcomes and partial effects.

The remainder of this paper is organized as follows. Section 2 introduces continuous DiD and demonstrates the identification of the causal parameter. Section 3 provides the orthogonal scores. In Section 4, we present our estimators and establish their asymptotic properties. Section 5 showcases the simulation results, followed by a detailed empirical example in Section 6. Section 7 concludes.

Setup and Identification

\setcounter{equation}{0} In this section, we formally set up the difference-in-differences with continuous treatment following Abadie2005 and CGS2024. First, using the potential outcome notation (e.g. Rubin74), let $Y_{i,t}(0)$ denote the potential outcome of individual $i$ in period $t$ when receiving no treatment, and similarly let $Y_{i,t}(d)$ denote the potential outcome of individual $i$ in period $t$ when receiving treatment with intensity $d$.

The treatment variable $D$ is modeled as a random variable with a mixture distribution: a probability mass at $0$ and a continuous distribution on an interval $[d_L,d_H]$ excluding $0$. Specifically, the control group consists of individuals who receive treatment $D=0$, and we need a relatively large number of individuals in the control group so that the comparison with the treated is meaningful. On the other hand, the treated individuals can receive varied treatments, each with a potentially different treatment dose/intensity $D=d\in[d_L,d_H]$. We restrict our attention to the two-period $(t-1, t)$ models and suppress the time notation in treatment $D_i$ in the panel setting. Let $X_i$ denote the set of individual-level covariates. We make the following assumptions:

assumption[Panel] The observed data $\{Y_{i,t-1}, Y_{i,t}, D_i, X_i\}_{i=1}^N$ are independently and identically distributed.
assumption[Repeated Cross-Sections] (a) For each individual $i$ in the pooled sample, $T_i$ is a time indicator $=1$ if observation $i$ belongs to the post-treatment sample and $=0$ otherwise, and $Y_i = (1-T_i)Y_{i,t-1} + T_iY_{i,t}$; (b) $(D,X)\perp T$ and the following holds: (i) conditional on $T=0$, data are i.i.d. from the distribution of $(Y_{t-1},D,X)$; (ii) conditional on $T=1$, data are i.i.d. from the distribution of $(Y_t,D,X)$.
assumption[Support] (a) The support of $D$ is $\{0\}\sqcup[d_L, d_H]$ with $0<d_L<d_H<\infty$; (b) there exists a constant $0<\kappa <\frac{1}{2}$ such that, almost surely, $\kappa <P(D=0|X)<1-\kappa$ and $f_{D|X}(d|X) > \kappa$ for all $d\in [d_L, d_H]$.
assumption[No Anticipation] $Y_t = Y_t(D)$, $Y_{t-1} = Y_{t-1}(0)$.
assumption[Conditional Parallel Trends] For all $d\in [d_L, d_H]$, the following holds \begin{align} E[Y_t(0)-Y_{t-1}(0)|X, D=d] = E[Y_{t}(0)-Y_{t-1}(0)|X, D=0]. \end{align}

Assumptions (ref) and (ref) are analogous to those in the DiD literature with a discrete treatment. While Assumption (ref) requires a balanced panel, Assumption (ref) allows for repeated cross-sections but imposes stationarity of $(D,X)$ and hence rules out compositional changes.\footnote{For DiD with compositional changes, see HONG2013, ZIMMERT2020, and SX2025 for detailed discussions in the discrete treatment setting, and HHZ2024 in the continuous treatment setting.} Assumption (ref) is the strong overlap assumption, ensuring sufficient support for both treated and untreated individuals, which is crucial for identification. Assumption (ref) formalizes the requirement that there is no anticipated treatment effect prior to the treatment. Assumption (ref), a generalization of the discrete case in HIT97,HIST98, is the key identifying condition for the causal parameter. This assumption essentially states that, conditional on covariates, the unobserved counterfactual trend of the treated at each given treatment intensity is the same as the observed trend of the control group.

Next, we describe our target parameter. The causal parameter we are interested in is the average treatment effect on the treated (ATT for short) at any given treatment intensity $d\in [d_L,d_H]$:

equation[equation omitted — 60 chars of source]

The interpretation of this parameter is analogous to the cases with discrete treatment variables: the expected effect of treatment with intensity $d$ for those who actually received treatment with intensity $d$. See also CGS2024 Section 3 for a comprehensive discussion on ((ref)) and an alternative parallel trends assumption under which the average treatment effect $ATE(d) := E[Y_t(d) - Y_t(0)]$ can be identified. The following theorem presents the main results of this section, in which we establish the identification of $ATT(d)$ for both panel and repeated cross-sectional settings.

theorem[Identification of ATT] (a) (Panel) If Assumptions (ref), (ref), (ref), and (ref) hold, then, for any $d\in[d_L, d_H]$, \begin{align} ATT(d) = E[Y_t-Y_{t-1}| D=d] - E\bigg[(Y_t-Y_{t-1})\mathbf{1}\{D=0\}\frac{f_{D|X}(d|X)}{f_{D}(d)P(D=0|X)}\bigg]; \end{align} (b) (Repeated Cross-Sections) if Assumptions (ref), (ref), (ref), and (ref) hold, then, for any $d\in[d_L, d_H]$, \begin{align} ATT(d) = E\bigg[\frac{T-\lambda}{\lambda(1-\lambda)}Y \bigg| D=d\bigg]- E\bigg[\frac{T-\lambda}{\lambda(1-\lambda)}Y\mathbf{1}\{D=0\}\frac{f_{D|X}(d|X)}{f_D(d)P(D=0|X)}\bigg] \end{align} where $\lambda := P(T=1)$.

With Theorem (ref), one can build estimators for $ATT(d)$ using the estimated sample analogs. For potentially high-dimensional covariates, machine learning methods can be employed to estimate the nuisance parameters, including the conditional density $f_{D|X}(d|X)$ and the conditional probability $P(D=0|X)$. However, the use of machine learning methods can often result in non-trivial first-order biases in the estimation of the causal parameter, see e.g. CCDDHNR and references therein for a detailed discussion. Therefore, we consider alternative estimating equations that reduce the influence of the nuisance parameters.

Orthogonal Scores

\setcounter{equation}{0} In this section, we focus on the panel case for illustration as the repeated cross-sectional case only requires minor modifications. We begin by introducing Neyman orthogonality. Let $\theta_0(d) \in \Theta\subset \mathbf{R}$ be the low-dimensional parameter of interest, e.g., $ATT(d)$, and let $\rho_0(d) \in\mathcal{H}(d)$ denote the true low-dimensional nuisance parameters, e.g., $\rho_0(d) = f_D(d)$. The true infinite-dimensional nuisance parameters $\eta_0(d)\in\mathcal{T}(d)$ include $f_{D|X}(d|X)$ and $P(D=0|X)$ with the estimated $\hat\eta(d)$ in the realization set $T_N(d)\subset \mathcal{T}(d)$ with high probability.\footnote{New infinite-dimensional nuisance parameters can arise when constructing the orthogonal scores. We also explicitly index the nuisance parameters and nuisance function spaces by treatment intensity $d$.} Let $Z$ be the observable random vector, e.g. $Z =(Y_{t-1},Y_t, D, X)$ in the panel setting, and let $\psi: (Z,\theta(d),\rho(d),\eta(d))\mapsto \mathbf{R}$ denote a score function.\footnote{We say $\psi$ is a score function if at the true nuisance parameters $(\rho_0(d),\eta_0(d))$ and the true $\theta_0(d)$, the moment condition $E[\psi(Z,\theta_0(d),\rho_0(d),\eta_0(d)] = 0$ holds.} With these notations, following CCDDHNR and Chang2020, we formally define the Neyman orthogonality with respect to the infinite-dimensional nuisance parameters.

definition[Neyman Orthogonality] A score $\psi$ satisfies the Neyman orthogonality condition at $(\theta_0(d),\rho_0(d),\eta_0(d))$ with respect to a nuisance realization set $T_N(d)\subset \mathcal{T}(d)$ if (a) $\theta_0(d)$ satisfies the moment condition \begin{align} E_P[\psi(Z,\theta_0(d),\rho_0(d),\eta_0(d))] = 0; \end{align} (b) for $r\in[0,1)$ and $\eta(d)\in T_N(d)$, the Gateaux (directional) derivative satisfies \begin{align} \partial_r E_P[\psi(Z,\theta_0(d),\rho_0(d),\eta_0(d) + r(\eta(d)-\eta_0(d)))]|_{r=0} = 0. \end{align}

In the above definition, (a) says that $\psi$ identifies the parameter of interests while (b) ensures the first-order bias from estimating the infinite-dimensional nuisance parameters is zero. Recall that in the panel case,

align[align omitted — 128 chars of source]

where $\Delta Y:= Y_t - Y_{t-1}$. First, given the continuous nature of the treatment intensity, $\theta_0(d)$ cannot be estimated non-parametrically at root-$N$ rate. This relates to a class of non-regular parameters involving continuous treatment variables; see GW2015, KMMS17, SUZ19, SC2021, FHLZ22, and CYYL25 for example. Moreover, a score based on the above expression does not satisfy Neyman orthogonality, and an adjustment term has to be added.

To this end, we approximate the non-regular $ATT(d)$ with a family of smoothed regular parameters that are tractable. We note that this approach has been discussed extensively in BL2017 and CYYL25, and specifically we rely on the following observation (e.g., FYT96):

equation[equation omitted — 129 chars of source]

where $K(\cdot)$ is a kernel function. Replacing $E[\Delta Y|D=d]$ and $f_{D|X}(d|x)$ by their kernel counterparts, we can define $ATT_h(d)$ as follows:

align[align omitted — 272 chars of source]

which is an expression that consists of only conditional expectations. Notably, it can be shown that

align*[align* omitted — 48 chars of source]

which suggests that we can work with $ATT_h(d)$ instead. In particular, define the bias $B_h(d):= ATT_d - ATT_h(d)$, one can show that $B_h(d) = O(h^2)$, and we defer the formal result to the next section. For notation simplicity, we now formally define $ATT_h(d)$ in both settings.

definition[Panel] \begin{align} ATT_h(d) = E\bigg[\Delta Y \frac{K_h(D-d)P(D=0|X) - \mathbf{1}\{D=0\}E[K_h(D-d)|X]}{f_D(d)P(D=0|X)} \bigg] \end{align} where $\Delta Y = Y_t - Y_{t-1}$.
definition[Repeated Cross-Sections] \begin{align} ATT_h(d) =& E\bigg[Y^\lambda\frac{K_h(D-d)P(D=0|X) - \mathbf{1}\{D=0\}E[K_h(D-d)|X]}{f_D(d)P(D=0|X)} \bigg] \end{align} where $Y^\lambda := \frac{T-\lambda}{\lambda(1-\lambda)}Y$ with $\lambda = P(T=1)$.

Our goal is to construct scores that satisfy Neyman orthogonality for each $h$, and then take the limit as $h\to 0$. The next lemma presents such scores. To simplify the expressions, denote: $g(X) := P(D=0|X)$; $f_h(d|X):= E[K_h(D-d)|X] $; $\mathcal{E}_{\Delta Y}(X) := E[\Delta Y|X,D=0]$; $\mathcal{E}_{\lambda Y}(X) := E\big[\frac{T-\lambda}{\lambda(1-\lambda)}Y\big|X, D=0\big]$ with $\lambda = P(T=1)$.

lemmaDefine (a) for the panel setting, \begin{equation} \psi_h^{(1)} := \frac{K_h(D-d)g(X) - \mathbf{1}\{D=0\}f_h(d|X)}{f_D(d)g(X)}\bigg(\Delta Y - \mathcal{E}_{\Delta Y}(X)\bigg) -ATT_h(d), \end{equation} and (b) for the repeated cross-sectional setting, \begin{equation} \psi_h^{(2)} := \frac{K_h(D-d)g(X) - \mathbf{1}\{D=0\}f_h(d|X)}{f_D(d)g(X)} \bigg(\frac{T-\lambda}{\lambda(1-\lambda)}Y - \mathcal{E}_{\lambda Y}(X) \bigg) -ATT_h(d). \end{equation} Suppose there exist $M_h^{(1)}\in L^1(P_{Y_{t-1},Y_t,D,X})$ and $M_h^{(2)}\in L^1(P_{Y,T,D,X})$ such that $|\psi_h^{(1)}|\leq M_h^{(1)}$ and $|\psi_h^{(2)}|\leq M_h^{(2)}$ almost surely. Then the scores $\psi_h^{(1)}$ and $\psi_h^{(2)}$ satisfy Neyman orthogonality defined in ((ref)).

The proof is provided in the appendix, where we construct the adjustment term and verify the Neyman orthogonality conditions from Definition (ref). We also provide an alternative derivation showing $\psi_h^{(1)}$ and $\psi_h^{(2)}$ as the efficient influence functions for the smoothed parameter $ATT_h(d)$ using the method proposed in HDDV22. The assumption on the existence of integrable functions $M_h^{(1)}$ and $M_h^{(2)}$ is mild and it justifies interchanging expectation and differentiation. For simplicity, we omit superscripts on $\psi^{(1)}_h$ and $\psi^{(2)}_h$ whenever the context is clear. The infinite-dimensional nuisance parameters in these new scores include $f_h(d|X)$, $g(X)$, $\mathcal{E}_{\Delta Y}(X)$, and $\mathcal{E}_{\lambda Y}(X)$, with the latter two introduced by the adjustment terms. Notably, the estimating moments for $ATT_h(d)$ based on these orthogonal scores remain robust to the first-order biases introduced by the nuisance estimates. In the next section, we construct DML estimators of $ATT(d)$ using these scores and establish their asymptotic properties.

Estimation and Inference

\setcounter{equation}{0} As mentioned in the introduction, constructing DML estimators involves two main steps. In the previous section, we established scores that satisfy Neyman orthogonality (Lemma (ref)). These scores are then used alongside a cross-fitting procedure, further reducing estimation bias. With these key components in place, we construct DML estimators following the procedure proposed by CCDDHNR.

First, we partition the sample $I_N$ into $K\geq 2$ disjoint subsets $\{I_k\}_{k=1}^K$ of equal size $n=N/K$. For each $k\in\{1,\cdots,K\}$, we use the auxiliary sample $I_k^c:= I_N\setminus I_k$ to estimate the nuisance parameters. We then compute sample averages according to ((ref)) and ((ref)) using these estimates, evaluated at $I_k$, to obtain $\widehat{ATT}_k(d)$. Finally, we average across the $K$ estimates to obtain the final estimator $\widehat{ATT}(d)$. We note that at each $k=1,\cdots, K$, the nuisance parameters and $\widehat{ATT}_k(d)$ are estimated using disjoint subsamples, which reduces the overfitting bias and significantly simplifies the asymptotic analysis. Moreover, since $K$ is fixed, it does not affect the asymptotic properties of the estimator. In practice, we recommend using $K=5$ as a rule of thumb and leave the optimal choice of $K$ to future research. The detailed algorithms are deferred to Appendix A.

Next, we outline the regularity conditions required to establish the asymptotic properties of our DML estimators. We focus on the panel case and present the analogous results for the repeated cross-sections in Appendix B. For notational simplicity, let $\mathcal{D}$ denote a closed sub-interval of $(d_L, d_H)$ whose boundary points can be chosen arbitrarily close to $d_L$ and $d_H$, and let $\mathcal{X}$ and $\Delta\mathcal{Y}$ denote the supports of $X$ and $\Delta Y$, respectively.

assumption[Kernel] The kernel function $K(\cdot)$ satisfies: (a) $K(\cdot)$ is bounded and differentiable; (b) $\int K(u) du = 1$, $\int uK(u)du = 0$, $0<\int u^2 K(u) du <\infty$. Moreover, for notation simplicity, define $K_h(u):= h^{-1}K(u/h)$.
assumption[Bounds and Smoothness, Panel] (a) There exist constants $c>0$ and $0<C<\infty$ such that $\sup_{d\in\mathcal{D}} f_D^0(d)>c$, $|Y_{t-1}| < C$, $|Y_{t}| < C$, $c <f_h^0(d|X)<C$ $\forall d\in\mathcal{D}$, and $|\mathcal{E}_{\Delta Y}^0(X)|<C$ almost surely; (b) $f_D^0(d) \in C^2(\mathcal{D})$ and $\sup_{d\in\mathcal{D}}|\partial_d^2 f_D^{0}(d)| < \infty$; (c) $f_{D|X}^0(d|x) \in C^2(\mathcal{D})$ $\forall x\in \mathcal{X}$ and $\sup_{d,x \in \mathcal{D},\mathcal{X}} |\partial^2_d f_{D|X}^0(d|x)| < \infty$; (d) $f_{\Delta Y, D}(t, d) \in C^2(\Delta\mathcal{Y})$ and $\sup_{t,d \in \Delta\mathcal{Y},\mathcal{D}} |\partial_t^2 f_{\Delta Y, D}(t, d)| < \infty$.
assumption[Rates, Panel] (a) The kernel bandwidth $h = h_N\to 0$ satisfies $Nh\to\infty$ and $\sqrt{Nh^5} = o(1)$; (b) there exists a sequence $\varepsilon_N\to 0$ such that $h^{-1}\varepsilon_N^2 = o(1)$; (c) with probability tending to $1$, $\|\hat{f}_h(d|X) - f_h^0(d|X)\|_{P,2}\leq h^{-1/2}\varepsilon_N$, $\|\hat{g}(X) - g_0(X)\|_{P,2}\leq \varepsilon_N$, $\|\hat{\mathcal{E}}_{\Delta Y}(X) - \mathcal{E}_{\Delta Y}^0(X)\|_{P,2}\leq \varepsilon_N$; (d) with probability tending to $1$, $\kappa<\hat{g}(X) < 1-\kappa$ and $c <\hat{f}_h(d|X)<C$ almost surely, and $\|\hat{\mathcal{E}}_{\Delta Y}(X)\|_{P,\infty}<C$.

The kernel function is central to our analysis. In addition to its well-established theoretical properties for estimating the density $f_D(d)$, we also use it to approximate the point mass at $D=d$ and the conditional density $f_{D|X}(d|X)$. Assumption (ref) imposes the standard regularity conditions on the kernel function, which are essential for establishing the asymptotic normality of our estimator. Assumption (ref) requires smoothness and boundedness of the outcome variable and relevant distributions, while Assumption (ref) specifies conditions on the kernel bandwidth and the quality of the non-parametric nuisance estimators.

remarkAssumption (ref) (a) and (b) give $h = o(N^{-1/5})$ and $h = \omega(\varepsilon_N^2)$. However, consistency of our variance estimator additionally requires $h^{-2}\varepsilon_N^2 + h^{-3}N^{-1} = o(1)$, which imposes a more restrictive lower bound on $h$. Moreover, whereas the standard DML literature assumes the nuisance estimators to converge at rate $\varepsilon_N = o(N^{-1/4})$, we allow the conditional density $\hat{f}_h$ to converge at a slower rate $h^{-1/2}\varepsilon_N$. This relaxation does not contradict the existing DML results for regular parameters; our target parameter is non-regular and cannot be estimated non-parametrically at $\sqrt{N}$ rate because of the continuous treatment. Finally, although our results assume a deterministic kernel bandwidth, they should extend to data-driven choices (for example, the adaptive procedure in BL2017), which we leave to future work.

The following lemma characterizes the bias of using kernels to approximate $ATT(d)$.

lemma[Bias of $ATT_h(d)$, Panel] Suppose Assumptions (ref), (ref), (ref) hold. Then $B_h(d) := ATT(d) - ATT_h(d)$ satisfies $B_h(d) = O(h^2)$ for any $d\in \mathcal{D}$.

The proof is given in the companion supplement. This lemma suggests that, for an undersmoothing bandwidth, the bias does not affect the asymptotic distribution of our estimators. The next theorem is the main result of this section that establishes the asymptotic normality of our estimator for $ATT(d)$.

theorem[Asymptotic Normality, Panel] Suppose assumptions (ref), (ref), (ref), (ref), (ref), (ref), and (ref) hold. Then, for $d\in\mathcal{D}$, if $\varepsilon_N = o(N^{-1/4})$, \[ \frac{\widehat{ATT}(d) - ATT(d)}{\sigma_{N}(d)/\sqrt{N}}\quad \to^d\quad N(0,1) \] where \begin{align} \sigma_{N}^2(d):= E\bigg[\bigg(\psi_h^{(1)}(Z,\theta_{0h}(d),f_D^0(d),\eta_0(d)) - \frac{\theta_{0h}(d)}{f_D^0(d)}\big(K_h(D-d)-E[K_h(D-d)]\big)\bigg)^2\bigg] \end{align} for $\theta_{0h}(d):= ATT_h(d)$ defined in ((ref)) and $\psi_h^{(1)}$ defined in ((ref)).

The proof builds on the DML framework of CCDDHNR, modified to accommodate kernel smoothing. The asymptotic variance has two components, both depending inversely on the kernel bandwidth $h$: one arising from the kernels in the orthogonal score $\psi_h$, and the other from the linear expansion of the estimator with respect to the kernel density estimator $\hat{f}_D(d)$. Since $h$ is a function of the sample size $N$ under our assumptions, we index the asymptotic variance by $N$ to reflect this dependence. Therefore, our estimator $\widehat{ATT}(d)$ attains a convergence rate of $\sqrt{Nh}$, which, though slower than the parametric rate $\sqrt{N}$, is comparable to the optimal rate for one-dimensional non-parametric regression estimation.

Next, following CCDDHNR and Chang2020, we consider a cross-fitted variance estimator. For notation simplicity, denote $\hat{\theta}_h(d):= \widehat{ATT}(d)$ and $E_{n,k} f(Z_i):= n^{-1}\sum_{i\in I_k}f(Z_i)$ as the empirical average of a function $f$ evaluated at $Z_i$'s in the subsample $I_k$. For the panel case, define

equation[equation omitted — 251 chars of source]

Then, with this variance estimator, the $1-\alpha$ confidence interval can be constructed as $[\widehat{ATT}(d) - z_{1-\alpha/2}\hat{\sigma}_N(d)/\sqrt{N}, \widehat{ATT}(d) + z_{1-\alpha/2}\hat{\sigma}_N(d)/\sqrt{N}]$ where $z_{1-\alpha/2}$ denotes the $1-\alpha/2$-th quantile of the standard normal random variable. The following theorem establishes the consistency of the cross-fitted variance estimator.

theorem[Consistency of Variance Estimator, Panel] Suppose the conditions of Theorem (ref) hold and assume that $h^{-2}\varepsilon_N^2 + h^{-3}N^{-1} = o(1)$. Then, for $d\in\mathcal{D}$, \begin{align*} \hat{\sigma}_{N}^2(d) = \sigma_{N}^2(d) + o_p(1) \end{align*} where $\hat{\sigma}_{N}^2(d)$ is defined in ((ref)) and $\sigma_{N}^2(d)$ is defined in ((ref)).

Alternatively, we can consider a multiplier bootstrap procedure to construct confidence intervals. Such procedure has been discussed extensively in recent studies, see, e.g., CCK2014b, BCFH17, SUZ19, CJ21, FHLZ22, and CYYL25. First, we make the following assumption on the multiplier.

assumption[Sub-exponential Multiplier] The random variable $\xi$ satisfies: (a) $\xi$ has a sub-exponential distribution; (b) $E[\xi]=Var(\xi) = 1$; (c) $\xi$ is independent of $(Y_{t-1}, Y_t, D, X)$ for the panel case and independent of $(Y, T, D, X)$ for the repeated cross-sectional case.

In practice, let $\{\xi_i\}_{i=1}^N$ be an i.i.d. sequence of random variables that satisfies Assumption (ref). Then for each $b=1,\cdots, B$, we independently draw such a sequence $\{\xi_i\}_{i=1}^{N}$ and construct estimates based on the following expression. For the panel case, define

align[align omitted — 280 chars of source]

Let $\hat{c}_{\alpha}$ denote the $\alpha$-th quantile of $\{\widehat{ATT}(d)_{b}^*- \widehat{ATT}(d)\}_{b=1}^B$, a $1-\alpha$ confidence interval can be constructed as $[\widehat{ATT}(d) - \hat{c}_{1-\alpha/2}, \widehat{ATT}(d) -\hat{c}_{\alpha/2}]$.

Moreover, we can establish valid uniform inference results based on the bootstrap estimator proposed here. The following assumption strengthens Assumption (ref).

assumption[Uniform Inference Rates, Panel] \sloppy (a) The kernel bandwidth $h = h_N\to 0$ satisfies $Nh\to\infty$ and $\sqrt{Nh^5} = o(1)$; (b) there exists a sequence $\varepsilon_N\to 0$ such that $h^{-1}\varepsilon_N^2 = o(1)$; (c) with probability tending to $1$, $\sup_{d\in\mathcal{D}}\|\hat{f}_h(d|X) - f_h^0(d|X)\|_{P,2}\leq h^{-1/2}\varepsilon_N$, $\|\hat{g}(X) - g_0(X)\|_{P,2}\leq \varepsilon_N$, $\|\hat{\mathcal{E}}_{\Delta Y}(X) - \mathcal{E}_{\Delta Y}^0(X)\|_{P,2}\leq \varepsilon_N$; (d) with probability tending to $1$, $\kappa<\hat{g}(X)<1-\kappa$ and $c <\hat{f}_h(d|X)<C$ almost surely $\forall d\in\mathcal{D}$, $\sup_{d\in \mathcal{D}}|\hat{f}_D^{(1)}(d)|<C$, $\sup_{d\in\mathcal{D}}\|\partial_d \hat{f}_h(d|X)\|_{P,\infty}< C$, and $\|\hat{\mathcal{E}}_{\Delta Y}(X)\|_{P,\infty}<C$.

This assumption differs from the pointwise case in two key ways. First, we require that, uniformly over $\mathcal{D}$, the nuisance estimator $\hat{f}_h(d|X)$ remains bounded and has rate $h^{-1/2}\varepsilon_N$. Second, we assume that the estimated density and conditional density to have bounded derivatives with probability tending to $1$, ensuring that the score functions are Lipschitz continuous on $\mathcal{D}$. These additional assumptions are mild and can be enforced during estimation procedures. With these modified assumptions, the linear expansion of the bootstrap estimators holds uniformly over $d\in\mathcal{D}$.

theorem[Uniform Linear Expansion, Panel] Suppose assumptions (ref), (ref), (ref), (ref), (ref), (ref), (ref), and (ref) hold. Then, for $d\in\mathcal{D}$, if $\varepsilon_N = o(N^{-1/4})$, \begin{align} &\widehat{ATT}(d) - \widehat{ATT}(d)^* \notag \\ &= \frac{1}{N}\sum_{i=1}^N \dot{\xi}_i\Bigg[\psi_h^{(1)}(Z_i,\theta_{0h}(d),f_D^0(d),\eta_0(d)) - \frac{\theta_{0h}(d)}{f_D^0(d)}\big(K_h(D_i-d)-E[K_h(D-d)]\big)\Bigg]\notag \\ &+ R^{(1)}(d) \end{align} where $\dot{\xi}_i := \xi_i - 1$ and $\sup_{d\in\mathcal{D}} |R^{(1)}(d)| = o_p( (Nh)^{-1/2})$.

This theorem is the basis for establishing uniform inference theory using the multiplier bootstrap estimator. We consider the following procedure, see CCK2014b and FHLZ22 for example, to establish valid uniform confidence bands.

itemize• Construct $\widehat{ATT}(d)$ and $\hat{\sigma}_N(d)$ on a finite grid of values $d\in \bar{\mathcal{D}} \subset \mathcal{D}$. • For each $b=1, \cdots, B$, draw an i.i.d. sequence of multipliers $\{\xi\}_{i=1}^N$ from a $N(1,1)$ distribution, and construct $\widehat{ATT}(d)_{b}^*$ for all $d\in \bar{\mathcal{D}}$. • Compute $\hat{c}(1-\alpha)$, which we denote as the $(1-\alpha)$-th quantile of \[ \Bigg\{\max_{d\in \bar{\mathcal{D}}} \frac{\sqrt{N}|\widehat{ATT}(d) - \widehat{ATT}(d)_{b}^*|}{\hat{\sigma}_N(d)} \Bigg \}_{b=1}^B. \] • For all $d\in\mathcal{D}$, construct the $1-\alpha$ uniform confidence band as \[ [\widehat{ATT}(d) - \hat{c}(1-\alpha)\hat{\sigma}_N(d)/\sqrt{N}, \quad \widehat{ATT}(d) + \hat{c}(1-\alpha)\hat{\sigma}_N(d)/\sqrt{N}]. \]

With Assumption (ref), we can easily adapt our proof of Theorem (ref) to establish the uniform consistency of our cross-fitted variance estimator ((ref)) over $\mathcal{D}$. Then, with Theorem (ref), we can show that the proposed uniform confidence band achieves asymptotic coverage of $1-\alpha$, using results from CCK2014a (Proposition 3.2 and Theorem 3.2) and CCK2014b (Corollary 3.1). Since this argument is well established in the literature, e.g., see the discussion of Theorem 4.2 in FHLZ22, we do not include the formal theoretical discussion here. Instead, we focus on presenting the new results in Theorem (ref) and defer its proof to the appendix.

remarkA natural extension of our framework is to develop a test for the conditional parallel trends assumption, akin to the approach in CS2018, Section 4, which examines differences between the not-yet-treated and the never-treated in the pre-treatment period. Extending such a test to the continuous treatment setting requires a multi-period generalization of the methods considered in this paper, and we suspect that stronger parallel trends assumptions would be necessary for a valid test. While our companion study, HHZ2024, proposes estimators that could aid in this analysis, a formal testing procedure remains an open question. Additionally, drawing on insights from SZ2020, we recognize that more efficient estimators may exist in the repeated cross-sectional settings than those considered in this paper (Appendix B), and we defer a detailed investigation of such estimators to HHZ2024.

Simulation

\setcounter{equation}{0} Data-generating process (a) $p = 100$ dimensional covariates $X \sim N(0.2,\Sigma)$, where $\Sigma$ has variances $1$ on the diagonal and covariances $0.1$ off-diagonal; (b) the control group propensity score follows $P(D=0|X) = 1/(1+\exp(-X'\gamma))$, with $\gamma_j = 0.5j^{-2}$; (c) for $D>0$, the continuous treatment is generated as $D= (1+\exp(X'\alpha))^{-1} + V$, where $V \perp X$, $V \sim Beta(2,2)$, $\alpha_j = 0.3j^{-2}$; (d) the potential outcomes are given by $Y_{t-1}(0) = \epsilon_1$, $Y_t(0) = Y_{t-1}(0) + X'\beta + 1 + \epsilon_2$, $Y_t(D) = Y_t(0) - 0.5D^2 + \epsilon_3$, where $\beta_j = 0.5/j$ for $j = 1, \cdots, 6$ and $0$ otherwise, and $(\epsilon_1, \epsilon_2, \epsilon_3)\sim N(0, I_3)$. For the panel setting, the generated data are $(Y_{i,t-1}, Y_{i,t}, X_i, D_i)$, with $Y_{t-1} = Y_{t-1}(0)$ and $Y_t = 1\{D>0\}Y_t(D) + 1\{D=0\}Y_t(0)$. Additionally, for the repeated cross-sectional setting, the generated data are $(Y_i, T_i, X_i, D_i)$, with time indicator $T \sim \text{Bern}(0.5)$ and $Y = TY_t + (1-T)Y_{t-1}$, $Y_{t-1} = Y_{t-1}(0)$, $Y_t = 1\{D>0\}Y_t(D) + 1\{D=0\}Y_t(0)$.

In our simulations, the nuisance parameters $P(D=0|X)$, $f_h(d|X) = E[K_h(D-d)|X]$, $E[Y_t - Y_{t-1}|X,D=0]$, and $E\big[\frac{T-\lambda}{\lambda(1-\lambda)}Y\big|X,D=0\big]$ are estimated non-parametrically using random forests each with 200 trees of maximum depth 20. Throughout our simulations, we also use an undersmoothing kernel bandwidth $h = 1.06\hat{\sigma}_{\tilde{D}}N^{-1/4}$, where $\hat{\sigma}_{\tilde{D}}$ is the estimated standard deviation of positive treatment intensities. We consider sample sizes $N = 2000$ and $10000$ for both panel and repeated cross-sectional settings, and we conduct $B = 500$ simulations in each setting. The DGP implies the true $ATT(d) = -0.5d^2$, and we focus on a specific treatment intensity $d = 0.9$. Notably, the continuous treatment variable is dependent on the correlated high-dimensional covariates in a nonlinear way. Additionally, the DGPs suggest that the effective sample size should be small at the target intensity, which adds another layer of difficulty for estimation.

Despite these challenges, the simulation results suggest that our estimators perform well. The histograms of these simulation estimates are shown in Figure (ref), where the red lines indicate the true ATT. We see that as the sample size increases, both bias and variance decrease. The simulation estimates appear to follow a normal distribution in each case, which is consistent with our asymptotic theory. Moreover, in Table (ref), we report the bias, the standard deviation of estimated ATTs (Std), the root-mean-squared error (RMSE), the average standard deviations (AVSE), and the coverage probability of 95 percent confidence intervals. In both settings, bias, standard deviation, and RMSE decrease as the sample size increases. The standard deviations of the simulation estimates are very close to the average estimated standard errors, suggesting that our variance estimators perform well. The coverage of the estimated confidence intervals is close to 95 percent, although there is a slight under-coverage in the panel setting.

figure[figure omitted — 165 chars of source]
table[table omitted — 622 chars of source]

Empirical Example

\setcounter{equation}{0}

Background

The Medicare Prospective Payment System (PPS) reform, introduced in 1983, shifted Medicare hospital reimbursements from a full-cost model to a fixed payment per diagnosis. However, for the first three years, capital costs continued to be reimbursed based on actual expenses.\footnote{As noted in AF2008, Medicare’s capital cost reimbursements remained unchanged until 1991 due to delays.} This created a relative increase in labor costs for hospitals treating Medicare inpatients. AF2008 highlights this feature, showing that the PPS reform significantly increased hospitals’ capital-labor ratios and encouraged technology adoption.

Theoretically, AF2008 predicts that PPS reform would lead to a higher capital-labor ratio and, if capital-labor substitution is sufficiently elastic, an increased demand for capital and technology. Since only hospitals with Medicare inpatients were affected, these effects likely varied with Medicare inpatient share. To test these predictions, AF2008 uses data from the 1980–1986 Annual American Hospital Association (AHA) survey, which provides hospital information including expenditures, employment, and technology adoption. Their baseline specification is a linear regression:

equation[equation omitted — 131 chars of source]

where $Y_{i,t}$ is the capital-labor ratio or total number of medical facilities for hospital $i$ in year $t$, $D_i$ is the pre-reform Medicare inpatient share, and $\text{Post}_t$ is a treatment-timing indicator. $X_{i,t}$ represents covariates, and $\alpha_i$ and $\gamma_t$ are hospital and year fixed effects, respectively. AF2008 argues that $\beta$ captures the causal effect of PPS reform on capital-labor ratios and technology adoption, relying on a parallel trends assumption: in the absence of the PPS reform, hospitals with different shares $D_i$ should have experienced similar changes in outcomes over time.

Recent work by CGS2024 examines the same empirical setting in detail and finds suggestive evidence that the parallel trends assumption may be too strong. This underscores the importance of incorporating covariates to improve the plausibility of the identifying assumption. By conditioning on covariates, our approach refines the parallel trends assumption, ensuring that hospitals are compared based on more similar characteristics. In this way, our analysis complements CGS2024, offering an alternative perspective on the effects of the PPS reform.

Setup as a continuous DiD

Regression (ref) resembles a Two-Way Fixed Effects (TWFE) design but differs in that $D_i$ is continuous. As shown by CGS2024, with continuous treatment, the coefficient $\beta$ in (ref) can be viewed as a weighted average of $ATT(d)$ with possible negative weights, which complicates interpretation.\footnote{See Proposition 10 in CGS2024. They do not incorporate covariates, but the issue persists.} Our continuous DiD framework addresses this by reframing AF2008’s design as follows: \setcounter{bean}{0}

list{(\alph{beana})}{\usecounter{beana}} • No Treatment Pre-PPS: Before the PPS reform, no hospital was treated. • Control Group: Hospitals with $D_i = 0$ (no Medicare patients) are the control. • Treatment Group: Hospitals with positive Medicare shares (treatment intensities) $D_i > 0$. • Outcomes: $Y$ includes the capital-labor ratio or measures of technological adoption. • Covariates: $X$ includes number of beds, metro status, private status, number of medical staff, and state dummies.\footnote{We exclude some additional characteristics in AF2008—e.g., general, short-term, or federal status—to avoid conditioning on PPS exemption criteria.} For the capital-labor ratio, we also add binary indicators of specialized capital equipments (CT, MRI, etc.). • Conditional parallel trends: \[ E[Y_{t}(0) - Y_{t-1}(0)|X,D=d] = E[Y_{t}(0) - Y_{t-1}(0)|X,D=0], \] i.e., absent the PPS reform, hospitals with share $D=d$ would have experienced similar changes over time as hospitals with no Medicare inpatients (shares $D = 0$), conditional on hospital-specific covariates $X$ determined before the PPS reform.

We identify the causal effect at intensity $d$ as: \[ ATT(d) = E[Y_t(d) - Y_t(0)|D=d]. \] Unlike the constant $\beta$ in ((ref)), the causal effect curve $ATT(d)$ can be used to study the policy impact at a much more granular level. For example, if the PPS reform raised the capital-labor ratio, $ATT(d)$ should be positive for all $d>0$. Moreover, $ATT(d)$ should increase in $d$ if the impact of PPS reform is larger for hospitals with higher shares of Medicare inpatients. We apply our panel estimator and, for comparability with AF2008, average pre-treatment outcomes ($Y_{t-1}$) over 1980–1983 and post-treatment outcomes ($Y_t$) over 1984–1986 (capital-labor ratio) or 1984–1985 (technology adoption). Our data source is the cleaned data file from AF2008.

Results

First, we examine the results for capital-labor ratio. All estimated ATTs are positive, mirroring the findings in AF2008 and suggesting that the PPS reform led to an increase in the capital-labor ratio. For comparison, AF2008 reports an estimate of $1.13$, which exceeds most of our estimates. Moreover, our estimates vary across treatment intensities and do not exhibit a strictly increasing trend, contradicting the theoretical prediction that hospitals with higher Medicare shares would see greater increases in the capital-labor ratio. At low and high treatment intensities, we note that the small effective sample sizes lead to noisier estimates, as reflected in the wider confidence intervals. For completeness, an effect curve estimated without covariates using a kernel method shows a similar pattern to our DML estimates.

Next, we present evidence of increased technological adoption following the PPS reform. Specifically, we consider the total number of specialized medical facilities per hospital as a proxy for technological adoption. All of our estimated ATTs for this outcome are positive, aligning with AF2008’s prediction that the PPS reform would incentivize technological adoption. The estimated treatment curve initially rises with treatment intensity but then declines at higher intensities, again diverging from the theoretical prediction that hospitals with larger Medicare shares would invest more. For comparison, an effect curve estimated using a kernel method without covariates again shows a similar pattern to our DML estimates. As with the capital-labor ratio, estimates are especially noisy where data are sparse, an issue amplified by our undersmoothing bandwidth.

figure[figure omitted — 210 chars of source]
remarkWe apply 5-fold cross-fitting, shuffling the data before sample splitting to prevent over-representation in subsamples. A second-order Gaussian kernel with an undersmoothing bandwidth $h = 1.06\times\hat{\sigma}_{\tilde{D}}N^{-1/4}$ is used to estimate both the density $f_D(d)$ and the conditional mean $E[K_h(D-d)|X]$ (see S2018). The infinite-dimensional nuisance parameters are estimated using the Random Forest (RF) from the Python scikit-learn package, with 200 trees of maximum depth 20 and fixed minimum leaf size 5. The RF is chosen for its flexibility to accommodate both continuous and discrete covariates, though other ML methods, such as deep neural networks, can be similarly employed. The standard errors are obtained from the cross-fitted estimator defined in ((ref)) and used to construct the 95-percent pointwise confidence intervals and the bootstrap uniform confidence bands. For the bootstrap CIs, we use Gaussian multipliers $\{\xi_i\}_{i=1}^N$ drawn from a normal distribution with $E[\xi_i]= Var[\xi_i] = 1$, with $B=1000$ repetitions.

Conclusion

This paper studies difference-in-differences models with continuous treatments. Our identification results are based on a conditional parallel trends assumption, allowing researchers to account for covariates non-parametrically. Under the double/debiased machine learning framework, we develop non-parametric estimators for the average treatment effect on the treated at each continuous treatment intensity and establish their asymptotic properties. Monte Carlo simulations demonstrate that our estimators perform well despite the highly non-linear relationship between the continuous treatment and the high-dimensional covariates. To demonstrate the empirical relevance of our methodology, we re-examine the research questions posed in AF2008 by applying our estimators to their dataset and obtaining new empirical insights. The extension of difference-in-differences models to the continuous treatment setting has important implications for empirical research. Our methods provide researchers with new tools for examining the impacts of continuous treatment variables.

thebibliography\bibitem[\citeauthoryear{Abadie}{Abadie}{2005}]{Abadie2005} Abadie, A. (2005). \newblock Semiparametric difference-in-differences estimators. \newblock {\em Review of Economic Studies\/} {\em 72}, 1--19. \bibitem[\citeauthoryear{Acemoglu and Finkelstein}{Acemoglu and Finkelstein}{2008}]{AF2008} Acemoglu, D. and Finkelstein, A. (2008). \newblock Input and technology choices in regulated industries: evidence from the health care sector. \newblock {\em Journal of Political Economy\/} {\em 116}, 837--880. \bibitem[\citeauthoryear{Ananat et al.}{Ananat et al.}{2022}]{AGHP22} Ananat, E., Glasner, B., Hamilton, C., and Parolin, Z. (2022). \newblock Effects of the expanded child tax credit on employment outcomes: evidence from real-world data from April to December 2021. \newblock Technical Working Paper 29823, National Bureau of Economic Research. \bibitem[\citeauthoryear{Athey and Imbens}{Athey and Imbens}{2006}]{AI2006} Athey, S. and Imbens, G. W. (2006). \newblock Identification and inference in nonlinear difference‐in‐differences models. \newblock {\em Econometrica\/} {\em 74}, 431--497. \bibitem[\citeauthoryear{Belloni et al.}{Belloni et al.}{2017}]{BCFH17} Belloni, A., Chernozhukov, V., Fernández‐Val, I., and Hansen, C. (2017). \newblock Program evaluation and causal inference with high‐dimensional data. \newblock {\em Econometrica\/} {\em 85}, 233--298. \bibitem[\citeauthoryear{Bibaut and van der Laan}{Bibaut and van der Laan}{2017}]{BL2017} Bibaut, A. F. and van der Laan, M. J. (2017). \newblock Data-adaptive smoothing for optimal-rate estimation of possibly non-regular parameters, arXiv:1706.07408. \bibitem[\citeauthoryear{Callaway and Sant'Anna}{Callaway and Sant'Anna}{2018}]{CS2018} Callaway, B. and Sant'Anna, P. H. (2018). \newblock Difference-in-differences with multiple time periods and an application on the minimum wage and employment, arXiv:1803.09015v2. \bibitem[\citeauthoryear{Callaway and Sant'Anna}{Callaway and Sant'Anna}{2021}]{CS2021} Callaway, B. and Sant'Anna, P. H. (2021). \newblock Difference-in-differences with multiple time periods. \newblock {\em Journal of Econometrics\/} {\em 225}, 200--230. \bibitem[\citeauthoryear{Callaway}{Callaway}{2023}]{CALL2023} Callaway, B. (2023). \newblock Difference-in-differences for policy evaluation. \newblock {\em Handbook of Labor, Human Resources and Population Economics\/}, 1--61. \bibitem[\citeauthoryear{Callaway, Goodman-Bacon, and Sant'Anna}{Callaway et al.}{2024}]{CGS2024} Callaway, B., Goodman-Bacon, A., and Sant'Anna, P. H. (2024). \newblock Difference-in-differences with a continuous treatment. \newblock Technical Working Paper 32117, National Bureau of Economic Research. \bibitem[\citeauthoryear{Cattaneo and Jansson}{Cattaneo and Jansson}{2021}]{CJ21} Cattaneo, M. D. and Jansson, M. (2021). \newblock Average density estimators: efficiency and bootstrap consistency. \newblock {\em Econometric Theory\/} {\em 38}, 1140--1174. \bibitem[\citeauthoryear{Chang}{Chang}{2020}]{Chang2020} Chang, N. C. (2020). \newblock Double/debiased machine learning for difference-in-differences models. \newblock {\em Econometrics Journal\/} {\em 23}, 177--191. \bibitem[\citeauthoryear{Chernozhukov et al.}{Chernozhukov et al.}{2014a}]{CCK2014a} Chernozhukov, V., Chetverikov, D., and Kato, K. (2014). \newblock Gaussian approximation of suprema of empirical processes. \newblock {\em Annals of Statistics\/} {\em 42}, 1564--1597. \bibitem[\citeauthoryear{Chernozhukov et al.}{Chernozhukov et al.}{2014b}]{CCK2014b} Chernozhukov, V., Chetverikov, D., and Kato, K. (2014). \newblock Anti-concentration and honest, adaptive confidence bands. \newblock {\em Annals of Statistics\/} {\em 42}, 1787--1818. \bibitem[\citeauthoryear{Chernozhukov et al.}{Chernozhukov et al.}{2018}]{CCDDHNR} Chernozhukov, V., Chetverikov, D., Demirer, M., Duflo, E., Hansen, C., Newey, W., and Robins, J. (2018). \newblock Double/debiased machine learning for treatment and structural parameters. \newblock {\em Econometrics Journal\/} {\em 21}, C1--C68. \bibitem[\citeauthoryear{Colangelo and Lee}{Colangelo and Lee}{2025}]{CYYL25} Colangelo, K. and Lee, Y. Y. (2025). \newblock Double debiased machine learning non-parametric inference with continuous treatments. \newblock {\em Journal of Business & Economic Statistics\/}, 1--26. \bibitem[\citeauthoryear{Cook et al.}{Cook et al.}{2023}]{CJLR23} Cook, L. D., Jones, M. E., Logan, T. D., and Ros\'{e}, D. (2023). \newblock The evolution of access to public accommodations in the United States. \newblock {\em The Quarterly Journal of Economics\/} {\em 138}, 37--102. \bibitem[\citeauthoryear{de Chaisemartin et al.}{de Chaisemartin et al.}{2022}]{CDPV2022} de Chaisemartin, C., D'Haultfoeuille, X., Pasquier, F., and Vazquez-Bare, G. (2022). \newblock Difference-in-differences estimators for treatments continuously distributed at every period, arXiv:2201.06898. \bibitem[\citeauthoryear{de Chaisemartin and D'Haultfoeuille}{de Chaisemartin and D'Haultfoeuille}{2023}]{DD2023} de Chaisemartin, C. and D'Haultfoeuille, X. (2023). \newblock Two-way fixed effects and differences-in-differences with heterogeneous treatment effects: a survey. \newblock {\em Econometrics Journal\/} {\em 26}, C1--C30. \bibitem[\citeauthoryear{D'Haultfoeuille et al.}{D'Haultfoeuille et al.}{2023}]{DHS2021} D'Haultfoeuille, X., Hoderlein, S., and Sasaki, Y. (2023). \newblock non-parametric difference-in-differences in repeated cross-sections with continuous treatments. \newblock {\em Journal of Econometrics\/} {\em 234}, 664--690. \bibitem[\citeauthoryear{Fan et al.}{Fan et al.}{1996}]{FYT96} Fan, J., Yao, Q., and Tong, H. (1996). \newblock Estimation of conditional densities and sensitivity measures in nonlinear dynamical systems. \newblock {\em Biometrika\/} {\em 83}, 189--206. \bibitem[\citeauthoryear{Fan and Yao}{Fan and Yao}{2003}]{FY2003} Fan, J. and Yao, Q. (2003). \newblock {\em Nonlinear Time Series: non-parametric and Parametric Methods\/} (Vol. 20). \newblock New York: Springer. \bibitem[\citeauthoryear{Fan et al.}{Fan et al.}{2022}]{FHLZ22} Fan, Q., Hsu, Y. C., Lieli, R. P., and Zhang, Y. (2022). \newblock Estimation of conditional average treatment effects with high-dimensional data. \newblock {\em Journal of Business and Economic Statistics\/} {\em 40}, 313--327. \bibitem[\citeauthoryear{Galvao and Wang}{Galvao and Wang}{2015}]{GW2015} Galvao, A. F. and Wang, L. (2015). \newblock Uniformly semiparametric efficient estimation of treatment effects with a continuous treatment. \newblock {\em Journal of the American Statistical Association\/} {\em 110}, 1528--1542. \bibitem[\citeauthoryear{Haddad et al.}{Haddad et al.}{2024}]{HHZ2024} Haddad, M. F., Huber, M., and Zhang, L. Z. (2024). \newblock Difference-in-differences with time-varying continuous treatments using double/debiased machine learning, arXiv:2410.21105. \bibitem[\citeauthoryear{H\"{a}rdle}{H\"{a}rdle}{1990}]{Hardle90} H\"{a}rdle, W. (1990). \newblock {\em Applied non-parametric regression\/} (No.19). \newblock United Kingdom: Cambridge University Press \bibitem[\citeauthoryear{Hettinger et al.}{Hettinger et al.}{2025}]{HLM25} Hettinger, G., Lee, Y., and Mitra, N. (2025). \newblock Multiply robust difference-in-differences estimation of causal effect curves for continuous exposures. \newblock {\em Biometrics\/} {\em 81}, ujaf015. \bibitem[\citeauthoryear{Heckman et al.}{Heckman et al.}{1997}]{HIT97} Heckman, J. J., Ichimura, H., and Todd, P. E. (1997). \newblock Matching as an econometric evaluation estimator: Evidence from evaluating a job training programme. \newblock {\em Review of Economic Studies\/} {\em 64}, 605--654. \bibitem[\citeauthoryear{Heckman et al.}{Heckman et al.}{1998}]{HIST98} Heckman, J., Ichimura, H., Smith, J., and Todd, P. (1998). \newblock Characterizing selection bias using experimental data. \newblock {\em Econometrica\/} {\em 66}, 1017--1098. \bibitem[\citeauthoryear{Hines et al.}{Hines et al.}{2022}]{HDDV22} Hines, O., Dukes, O., Diaz-Ordaz, K., and Vansteelandt, S. (2022). \newblock Demystifying statistical learning based on efficient influence functions. \newblock {\em The American Statistician\/} {\em 76}, 292--304. \bibitem[\citeauthoryear{Hirano and Imbens}{Hirano and Imbens}{2004}]{HI2004} Hirano, K. and Imbens, G. W. (2004). \newblock The propensity score with continuous treatments. \newblock {\em Applied Bayesian Modeling and Causal Inference from Incomplete-Data Perspectives\/} {\em 226164}, 73--84. \bibitem[\citeauthoryear{Hong}{Hong}{2013}]{HONG2013} Hong, S. H. (2013). \newblock Measuring the effect of napster on recorded music sales: difference‐in‐differences estimates under compositional changes. \newblock {\em Journal of Applied Econometrics\/} {\em 28}, 297--324. \bibitem[\citeauthoryear{Kallus and Zhou}{Kallus and Zhou}{2018}]{KZ2018} Kallus, N. and Zhou, A. (2018). \newblock Confounding-robust policy improvement. \newblock {\em Advances in Neural Information Processing Systems\/} {\em 31}. \bibitem[\citeauthoryear{Kennedy et al.}{Kennedy et al.}{2017}]{KMMS17} Kennedy, E. H., Ma, Z., McHugh, M. D., and Small, D. S. (2017). \newblock Non‐parametric methods for doubly robust estimation of continuous treatment effects. \newblock {\em Journal of the Royal Statistical Society\/}, Series B (Statistical Methodology) {\em 79}, 1229--1245. \bibitem[\citeauthoryear{Kennedy}{Kennedy}{2024}]{KENNEDY24} Kennedy, E. H. (2024). \newblock Semiparametric doubly robust targeted double machine learning: a review. \newblock {\em Handbook of Statistical Methods for Precision Medicine\/}, 207--236. \bibitem[\citeauthoryear{Li and Racine}{Li and Racine}{2007}]{LR07} Li, Q. and Racine, J.S. (2007). \newblock {\em non-parametric Econometrics: Theory and Practice\/}. \newblock Princeton, NJ: Princeton University Press. \bibitem[\citeauthoryear{Roth et al.}{Roth et al.}{2023}]{RSBP23} Roth, J., Sant’Anna, P. H., Bilinski, A., and Poe, J. (2023). \newblock What’s trending in difference-in-differences? A synthesis of the recent econometrics literature. \newblock {\em Journal of Econometrics\/} {\em 235}, 2218--2244. \bibitem[\citeauthoryear{Rubin}{Rubin}{1974}]{Rubin74} Rubin, D. B. (1974). \newblock Estimating causal effects of treatments in randomized and nonrandomized studies. \newblock {\em Journal of Educational Psychology\/} {\em 66}, 688--701. \bibitem[\citeauthoryear{Sant'Anna and Xu}{Sant'Anna and Zhao}{2025}]{SX2025} Sant'Anna, P. H. and Xu, Q. (2025). \newblock Difference-in-Differences with compositional changes, arXiv:2304.13925v2. \bibitem[\citeauthoryear{Sant'Anna and Zhao}{Sant'Anna and Zhao}{2020}]{SZ2020} Sant'Anna, P. H. and Zhao, J. (2020). \newblock Doubly robust difference-in-differences estimators. \newblock {\em Journal of Econometrics\/} {\em 219}, 101--122. \bibitem[\citeauthoryear{Semenova and Chernozhukov}{Semenova and Chernozhukov}{2021}]{SC2021} Semenova, V. and Chernozhukov, V. (2021). \newblock Debiased machine learning of conditional average treatment effects and other causal functions. \newblock {\em Econometrics Journal\/} {\em 24}, 264--289. \bibitem[\citeauthoryear{Silverman}{Silverman}{2018}]{S2018} Silverman, B. W. (2018). \newblock {\em Density Estimation for Statistics and Data Analysis\/}. \newblock Routledge. \bibitem[\citeauthoryear{Su et al.}{Su et al.}{2019}]{SUZ19} Su, L., Ura, T., and Zhang, Y. (2019). \newblock Non-separable models with high-dimensional data. \newblock {\em Journal of Econometrics\/} {\em 212}, 646--677. \bibitem[\citeauthoryear{van der Vaart and Wellner}{van der Vaart and Wellner}{1996}]{VW96} van der Vaart, A.W. and Wellner, J.A. (1996). \newblock {\em Weak Convergence and Empirical Processes: With Applications to Statistics\/}. \newblock New York: Springer. \bibitem[\citeauthoryear{Zeng et al.}{Zeng et al.}{2022}]{ZDS2022} Zeng, H. S., Danaher, B., and Smith, M. D. (2022). \newblock Internet governance through site shutdowns: the impact of shutting down two major commercial sex advertising sites. \newblock {\em Management Science\/} {\em 68}, 8234--8248. \bibitem[\citeauthoryear{Zimmert}{Zimmert}{2020}]{ZIMMERT2020} Zimmert, M. (2020). \newblock Efficient difference-in-differences estimation with high-dimensional common trend confounding, arXiv:1809.01643v5.