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.
118,031 characters · 11 sections · 118 citation commands
Inferring Treatment Effects in Large Panels by Uncovering Latent Similarities
The potential presence of unobserved confounding factors presents a challenging obstacle for casual inference. However, the availability of rich panel data can help solve this problem. Panel data contain multiple observations for each individual and thus it provides a possible means of controlling for time-invariant confounders (fixed effects). Moreover, panel data can enable the imputation of individual counterfactual outcomes. Methods for causal inference in panels have become dominant in empirical work, and their development is an active and rapidly growing area of research (see, e.g., arkhangelsky2024causal).
Many popular methods for causal inference using panel data assume that untreated potential outcomes have a linear/affine structure. For example, difference-in-differences (DiD) and two-way fixed effects (TWFE) methods rely on parallel trend assumptions, whereas synthetic control (SC) and most matrix completion methods require that untreated potential outcomes obey a linear factor model. The assumption of a linear model can simplify estimation and inference, and may be necessary given limited data availability. However, the assumption of linearity may be overly restrictive.
This paper presents a new method for estimation of, and inference on, the causal effects of a binary treatment $w_{i,t}$ in large panels. We assume that the untreated potential outcome of unit $i$ in period $t$ follows the possibly nonlinear and non-separable factor model below
where $\alpha_i$ and $\lambda_t$ are unobserved unit and time effects, $\mu^{(0)}(\cdot, \cdot)$ is an unknown function, and $u_{i,t}$ is an (exogenous) residual.\footnote{It is also straightforward to allow for a linear covariates adjustment in (ref). We abstract from this extension for clarity of exposition.} We assume that conditional on the latent factors, untreated potential outcomes are independent of treatment. Importantly, we do not assume that $\mu^{(0)}(\cdot, \cdot)$ has any particular parametric form. Thus, the model (ref) is substantially more general than the commonly used linear formulations $\mu^{(0)}(\alpha_i, \lambda_t) = \alpha_i + \lambda_t$ and $\mu^{(0)}(\alpha_i, \lambda_t) = \alpha_i' \lambda_t$ imposed by DiD/TWFE and SC methods, respectively.
While the generality of formulation (ref) is appealing, it obscures identification and estimation of treatment effects because $\alpha_i$ cannot be identified without strong additional restrictions are on the form of $\mu^{(0)}(\cdot, \cdot)$. Instead of trying to model $\mu^{(0)}(\cdot, \cdot)$ and to estimate $\alpha_i$ directly, we follow an approach first developed by zhang2017estimating to estimate the graphon in the context of network data. We use a long history of pre-treated outcomes to construct a pseudo-distance $\hat{d}_{i,j}$ that is informative about the closeness of the latent characteristics of individuals $i$ and $j$. That is, the closeness of $\alpha_i$ and $\alpha_j$. This allows us to impute the values of conditional mean potential outcomes and propensity scores (conditional on the latent factors) in a given post-treatment period $t$ for all units by kernel smoothing based on $\hat{d}_{ij}$. This is despite the fact that $\alpha_i$ is neither observed nor identified.
We construct estimates of $\mu^{(0)}_{i,t}$ and $p_{i,t}$ and establish their rates of convergence (uniformly over $i$) when both the number of units $N$ and the number of pre-treatment periods $T_0$ go to infinity. Notably, if $T_0$ goes to infinity sufficiently quickly, then our estimators achieve the optimal nonparametric rate of convergence in stone1980optimal (up to a log term), as if we observed the latent $\alpha_i$.
Once the values of the conditional means and the propensity scores are imputed, we construct a doubly robust estimate of the average treatment effect on the treated (ATT) for a given post-treatment period $t$ (e.g., robins1994estimation,chernozhukov2018double). We propose a cross-fitting scheme which, together with double robustness, helps to ensure that our treatment effect estimates are $\sqrt{N}$-consistent, and asymptotically normal and unbiased. Remarkably, under certain regularity conditions and if $T_0$ grows sufficiently fast, our estimator achieves the semiparametric efficiency bound as if $\alpha_i$ was observed.
We provide extensive simulation evidence of the efficacy of our methods. We show reliable confidence interval coverage over a range of DGPs.
This paper contributes to the vast and rapidly growing literature on causal inference in panels. We refer the reader to arkhangelsky2024causal for an excellent recent overview of this field. DiD and TWFE are very widely used still growing in popularity in applied work, perhaps due to their practicality and perceived transparency (goldsmith2024tracking); see de2023two and roth2023s for extensive reviews of the DiD and TWFE literature. A focus of the recent econometrics literature concerning these methods is the accomodation of heterogeneous treatment effects (e.g., de2020two,callaway2021difference,sun2021estimating,wooldridge2021two,borusyak2024revisiting). However, the validity of DiD and TWFE methods crucially relies on the parallel trends assumption. A number of recent papers re-evaluate the restrictiveness of parallel trends in DiD and TWFE and in some cases propose relaxing the assumption at the expense of point identification (e.g., manski2018right,rambachan2023more,ghanem2022selection). In contrast, our framework relaxes the parallel trends assumption and allows for rich heterogeneity in treatment effects and selection mechanisms, but maintains point identification. However, in order to achieve this we require a sufficiently long pre-treatment history in contrast to these other methods.
Alternative popular approaches to causal inference in panels include SC and matrix completion methods; see abadie2021using for a recent review of SC methods. Some recent developments in the rapidly growing SC and causal matrix completion literatures include, among others, arkhangelsky2021synthetic,cattaneo2021prediction,chernozhukov2021exact,chernozhukov2018t and athey2021matrix,bai2021matrix,agarwal2023causal,abadie2024doubly, respectively. Similarly to the interactive fixed effects panel literature (e.g., pesaran2006estimation,bai2009panel), SC and matrix completion methods generalize the TWFE framework by allowing the (untreated) potential outcomes to follow a factor model. Similarly to this paper, these methods impute the missing counterfactual outcomes by leveraging the factor structure of a long history of pre-treatment outcomes. However, to establish statistical guarantees and validity of inference, most methods assume a linear factor model, i.e, $\mu^{(0)} (\alpha_i,\lambda_t) = \alpha_i' \lambda_t$, whereas we allow for a general nonparametric and nonlinear factor model. While some matrix completion methods consider extensions to nonlinear factor models, these papers either lack inferential theory and/or impose strong smoothness requirements on $\mu^{(0)}(\cdot,\cdot)$, e.g., assume that $\mu^{(0)}(\cdot,\cdot)$ belongs to a H\"older class (e.g., agarwal2020synthetic,fernandez2021low,athey2025identificationaveragetreatmenteffects). In contrast, our imputation method (nearly) achieves the optimal nonparametric rate of convergence and allows us to provide a semiparametrically efficient estimator of the ATTs under a substantially weaker Lipschitz continuity assumption.
We measure latent similarity using a pseudo-distance suggested in zhang2017estimating, allowing us to identify individuals with similar latent characteristics, despite the inherent non-identifiability of the latent factors $\alpha$. Various versions of this pseudo-distance have been utilized in the recent literature in numerous applications, including non-parametric graphon estimation zhang2017estimating,zeleneev2020identification,nowakowicz2024nonparametric, controlling for unobservables using network data auerbach2022identification, and estimation of nonlinear factor models feng2024optimal. Other recent applications to estimation of treatment effects in network and panel models include wang2022linking, hoshino2024estimating, and athey2025identificationaveragetreatmenteffects but, unlike this paper, none of these works provides inferential theory.
Perhaps most closely related to the present work are feng2024causal and abadie2024doubly. feng2024causal studies causal inference in a cross-sectional setting. He uses a large number of auxiliary variables following a nonlinear factor model to control for unobservables. These auxiliary variables play effectively the same role as the pre-treatment history in our setting. Similarly to our work, feng2024causal imputes the counterfactual means and the propensity scores and then uses the imputed values to construct doubly robust estimators and confidence intervals for causal estimands of interest. However, his imputation method is different from ours. Specifically, feng2024causal combines the pseudo-distance of zhang2017estimating with local principal component analysis (PCA) to estimate latent factors and loadings and then employs quasi-maximum likelihood using these estimates for imputation. On the other hand, our approach imputes the counterfactual means and propensity score directly without estimating the factors nor factor loadings. The simplicity of our approach results in both theoretical and practical advantages. First, we are able to establish consistency of our estimators and obtain the desired rates of convergence under weaker smoothness requirements. Second, we find that our approach also performs better than feng2024causal's method in small and moderate sample sizes typical for microeconometric applications.
abadie2024doubly is another recent paper that provides a doubly robust approach to inference in latent factor models. While the standard matrix completion methods exclusively focus on imputing the counterfactual means, abadie2024doubly suggest applying these methods to estimate the matrix of propensity scores as well. The latter imputation approach is fundamentally different than the one proposed in this paper. Specifically, abadie2024doubly rely on denoising a large matrix of treatment assignments which have an underlying low-rank structure, whereas our approach imputes the propensity scores based on the pre-treatment outcomes. Another important difference is that abadie2024doubly consider linear factor models, whereas we focus on and provide formal statistical guarantees for nonlinear factor models while imposing minimal smoothness requirements.
Our estimation approach is based on a doubly robust estimate of the ATT. As shown in stone1980optimal, the optimal rate of convergence for nonparametric estimators is slow under weak smoothness assumptions, which can complicate inference. The use of doubly robust/Neyman orthogonal estimation (e.g., robins1994estimation, robins1995semiparametric, hahn1998role, scharfstein1999adjusting,chernozhukov2018double,chernozhukov2022debiased) can help ensure centered asymptotic normality for low-dimensional estimands in the presence of nonparametric nuisance parameters. Some recent literature on panel data leverages double robustness to achieve valid inference under relatively weak conditions (e.g., arkhangelsky2022doubly,arkhangelsky2024double,sant2020doubly).
The rest of the paper is organized as follows. Section (ref) introduces the framework and describes our estimator. Section (ref) provides formal statistical guarantees. Section (ref) presents numerical evidence. All auxiliary lemmas and proofs are provided in Appendix (ref).
Our sample consists of individuals indexed by $i=1,...,n$ and time periods indexed by $t=1,...,T$. For each individual $i$ and period $t$, we observe an outcome $Y_{i,t}$ and a binary indicator $w_{i,t}$. The indicator $w_{i,t}$ is equal to one if individual $i$ is treated at or prior to time $t$ and zero otherwise. We assume throughout that no individual in the population is treated prior to a period $T_0+1$ with $T_0<T$. We let $Y_{i,s:t}$ denote the vector of outcomes for individual $i$ from periods $s$ to $t$ inclusive and similarly for other variables.
Let $Y_{i,t}(0)$ denote the potential outcome of individual $i$ at time $t$ under a counterfactual in which the individual has not yet received treatment at period $t$. We assume that if $w_{i,t}=0$ then $Y_{i,t}=Y_{i,t}(0)$. This precludes the possibility that individuals anticipate future treatment and that this impacts their outcomes (e.g., Abbring2003, borusyak2021revisiting, sun2021estimating). We state this formally in Assumption (ref) below.
Central to our analysis is the assumption of a non-linear factor model for the untreated potential outcomes. Let $\alpha_i$ be some latent and time-invariant characteristics of individual $i$, and let $\lambda_t$ be period-specific factors. $\alpha_i$ may capture say, unobserved demographic characteristics, individual preferences, or innate ability. $\lambda_t$ may capture e.g., unobserved macro-economic conditions, government policy, or environmental factors. We model the potential outcomes and realized treatments as follows.
The residuals $u_{i,t}$ and $\epsilon_{i,t}$ are unobserved. The functions $\mu^{(0)}$ and $p_t$ are unknown and we do not assume that they have any particular functional form. Note that the model above implies that the mean of $Y_{i,t}(0)$ given the latent factors is time-invariant and does not depend on the individual $i$. However, the time-subscript on $p_t$ allows the conditional mean of $w_{i,t}$ to vary over time, which reflects the fact that this variable is increasing and that it is therefore non-stationary.
Knowledge of the latent factors $\alpha_i$ and $\lambda_t$ is insufficient to identify causal quantities of interest. This is because the residual in the treatment model ((ref)) may be correlated with the residual in the outcome equation ((ref)). In particular, there may be confounding factors that are not included in $\alpha_i$ and $\lambda_t$ and which influence both the outcome and treatment status. In order to achieve identification we make the key assumption that the latent factors $\alpha_i$ and $\lambda_t$ together account for all confounding between the outcome and treatment. Formally, we assume that after controlling for these latent factors, there is no residual dependence between the untreated potential outcome and treatment.
The assumption of latent unconfoundedness is common in the literature (e.g. abadie2024doubly, agarwal2021causal, arkhangelsky2022doubly, athey2021matrix, fernandez2021low). Note that the assumption effectively requires that the latent factors are sufficiently rich.
Exposure to macroeconomic conditions and other shared aggregate factors may induce dependence between the potential outcomes of different individuals. We assume that the time-specific factors $\lambda_t$ are sufficiently rich that after controlling for these factors and the individual-specific factors, the untreated potential outcomes of any two individuals are independent.
Under Assumption (ref), key counterfactual quantities of interest can be written in terms of the latent factors and functions $\mu^{(0)}$ and $p$. For notational convenience, let $p_{i,t}:=p_t(\alpha_i) $ and $\mu^{(0)}_{i,t}:=\mu^{(0)}(\alpha_i, \lambda_t)$. Under Assumption (ref), the average effect of treatment on the treated at time $t$, which is defined as $\mathbb{E}_t[Y_{i,t}-Y_{i,t}(0)|w_{i,t}=1]$, can be written in doubly-robust form as follows. \[ \mathrm{ATT}_t=\frac{1}{P(w_{i,t}=1)}\mathbb{E}_t\bigg[Y_{i,t}w_{i,t}-\frac{(1-w_{i,t})Y_{i,t}p_{i,t}+(w_{i,t}-p_{i,t})\mu^{(0)}_{i,t}}{1-p_{i,t}}\bigg] \] The time subscript on the expectation above indicates that it is taken with respect to the period $t$-specific distribution of the observables (i.e., conditional on $\lambda_t$). The doubly-robust form of ATT above is proposed and used in panel data settings by sant2020doubly. Additionally, the proposed method can also adopt other causal estimands with their respective doubly robust score functions (e.g., arkhangelsky2022doubly).
In this paper we provide new methods for estimating $p_{i,t}$ and $\mu^{(0)}_{i,t}$. Given these estimates, one can construct a doubly-robust estimate of $\mathrm{ATT}_t$ and perform inference on this object. Let $\hat{p}_{i,t}$ and $\hat{\mu}^{(0)}_{i,t}$ be estimates of $p_{i,t}$ and $\mu^{(0)}_{i,t}$ respectively. Then a corresponding doubly-robust estimate of $\mathrm{ATT}_t$ is given below, where $N$ is the sample size, and $N_{1,t}$ the number of individuals treated by time $t$.
Our proposed estimation method uses pre-treatment outcomes to find untreated individuals whose latent factors $\alpha_i$ are similar to those of treated individuals. To motivate our approach, let us first suppose $\alpha_i$ were observed. Under Assumptions (ref) and (ref), we have
The objects on the right-hand sides of each equation above are regression functions. If $\alpha_{i,t}$ were observable, we could apply Nadaraya-Watson to non-parametrically estimate the functions $\mu^{(0)}(\cdot,\lambda_t)$ and $p_t(\cdot)$ and thus $p_{i,t}$ and $\mu^{(0)}_{i,t}$. To be precise, we could obtain the following estimates.
The estimates above are infeasible because in practice, we do not directly observe $\alpha_i$ for any individual $i$. In order to obtain feasible estimates, we replace the infeasible distance $\|\alpha_i-\alpha_j\|$ in the expressions above, with a feasible pseudo-distance. To define this pseudo-distance, suppose that no individuals in the population are treated prior to some period $T_0+1$ and let $\langle\cdot,\cdot \rangle$ be the Euclidean inner-product. We use the pseudo-distance defined below:
A pseudo-distance of the form above is employed in zhang2017estimating. To motivate the use of the pseudo-distance, suppose Assumption (ref) holds. Then conditional on the individual latent factors, the inner-product in the pseudo-distance is an unbiased estimate of the object on the right-hand side below. \[ \mathbb{E}[\langle Y_{k,1:T_0}, Y_{i,1:T_0} - Y_{j,1:T_0} \rangle|\alpha_i,\alpha_j,\alpha_k]=\int \mu^{(0)}(\alpha, \lambda) \big( \mu^{(0)}(\alpha_i, \lambda) - \mu^{(0)}(\alpha_j, \lambda) \big) \dd \pi(\lambda). \] In the above, $\pi$ is the stationary distribution of $\lambda_t$. As such, we can understand the pseudo-distance as the sample analogue of the population pseudo-distance below, where $\mathcal{A}$ is the support of $\alpha_i$.
The inequality relates the size of the pseudo-distance $d_{i,j}$ to a squared $L_2$ distance between the functions $\mu^{(0)}(\alpha_i, \cdot)$ and $\mu^{(0)}(\alpha_j, \cdot)$. Thus $d_{i,j}$ measures similarity of the latent factors to the extent that they impact outcomes. We provide sufficient conditions for the consistency of the sample pseudo-metric to this quantity.
It is worth contrasting the sample pseudo-distance above with the Euclidean distance between the history of pre-treatment outcomes, which is defined as $\|Y_{i,1:T_0} - Y_{j,1:T_0}\|^2$. The mean of the squared Euclidean distance conditional on the individual latent factors is given below, where we again assume that untreated potential outcomes of different individuals are independent conditional on the latent factors.
Thus the Euclidean distance is increasing in the conditional residual variance $E[u_{j,t}^2|\alpha_j,\lambda_t=\lambda]$. Thus in the presence of conditional heteroskedasticity, a small Euclidean distance may reflect that individual $j$'s outcomes have a low residual variance and not that individual $j$ and $i$ have similar latent factors. It is the need to be robust to conditional heteroskedasticity that motivates our use of the pseudo-metric.
Given the pseudo-distance, we may form feasible estimates of $p_{i,t}$ and $\mu^{(0)}_{i,t}$ as follows.
One could plug the estimates above into the the formula for the doubly-robust $\mathrm{ATT}_t$ estimate ((ref)). However, we instead employ a cross-fitting scheme to further de-bias our estimates. This is in-line with the extensive literature on double machine learning, which demonstrates the utility of cross-fitting for reducing bias and obtaining valid inference (e.g., chernozhukov2018double, abadie2024doubly). The full algorithm with cross-fitting is detailed below along with a variance estimate and confidence interval.
The estimator $\hat{\mathrm{ATT}}_t$ is doubly robust and employs cross-fitting. An extensive literature (e.g., robins2008higher, chernozhukov2018double, abadie2024doubly) provides sufficient conditions for $\sqrt{N}$-consistency of such estimates and asymptotically correct coverage of the corresponding confidence intervals. A key condition is that the first stage nuisance-parameter estimates (in our case $\hat{\mu}^{(0)}_{i,t}$ and $\hat{p}_{i,t}$) converge sufficiently quickly. For this condition, the following rates suffice: \[ \max_{i \in [N]} \left\vert \hat{\mu}_{i,t}^{(0)} - \mu_{i,t}^{(0)} \right\vert = o_p(N^{-1/4})\hspace{30pt}\text{and}\hspace{30pt} \max_{i \in [N]} \left\vert \hat{p}_{i,t}- p_{i,t} \right\vert =o_p(N^{-1/4}) \]
We establish convergence rates for the first-stage estimates. These rates may be of interest per se because $\mu_{i,t}^{(0)}$ is the optimal prediction of individual $i$'s untreated potential outcome given the latent factors. We show that under certain conditions, the estimates achieve the stone1980optimal optimal rate for non-parametric regression on $\alpha_i$ under Lipschitz continuity. That is, we can achieve the same optimal rate attainable for the infeasible estimates that take $\alpha_i$ as known. However, in order to achieve this rate, we require that the number of pre-treatment periods $T_0$ grows sufficiently quickly with $N$.
In order to derive convergence rates for our first-stage estimates of $\mu^{(0)}$ and $p_t$ we impose the following additional assumptions.
Assumption (ref) (ref) is a standard overlap condition and would be required for regular estimation of the ATT even if $\alpha_i$ were observed. Note that because we are interested in the average effect of treatment on the treated, we only require that the conditional probability of treatment is bounded below away from zero and not above away from one. Assumption (ref) (ref) restricts that the tail behavior of the error terms, requiring them to be sub-Gaussian. The assumption also imposes that the residuals are independent over time given the time-specific factors. This condition allows us to apply particular concentration inequalities in order to obtain fast rates of convergence.
Assumption (ref) (ref) imposes that the latent factors are independent and identically distributed and that the individual-specific factors have compact support. Compact support of the individual-specific latent factors helps to ensure that with high probability, for each treated individual $i$, there exist untreated individuals in the sample whose latent factors are close to those of $i$. Independence and identical distribution of the individual-specific latent factors follows if we understand individuals to be drawn identically and independently from the underlying population. Independence of $\lambda_t$ over time may be plausible if time periods are sufficiently far apart. This restriction on $\lambda_t$ allows us to apply concentration inequalities and ensure fast convergence of the pseudo-distance.
Assumption (ref) (ref) imposes that the functions $\mu^{(0)}$ and $p_t$ are bounded and vary smoothly with the individual-specific factors. This smoothness assumption ensures that individuals with similar latent factors also have similar conditional-mean potential outcomes and treatments. Assumption (ref) (ref) stipulates properties of the kernel $K$. Kernels that satisfy this condition include are common in the literature, with the Epanechnikov kernel a particularly prevalent choices.
Assumption (ref) (ref) relates the pseudo-distance to the distance between individual latent factors. The assumption imposes first, that the mean-squared distance between $\mu^{(0)}(\alpha_1,\cdot)$ and $\mu^{(0)}(\alpha_2,\cdot)$ is at least proportional to the Euclidean distance between $\alpha_1$ and $\alpha_2$. In addition, the assumption states that the population pseudo-distance is at least proportional to this mean-squared distance. Consider the special case in which $\mu^{(0)}(\alpha,\lambda)=\alpha'M\lambda$ for some fixed matrix $M$. In this case, the condition ((ref)) holds so long as the matrix $M\int_{\lambda\in\operatorname*{supp}(\lambda)}\lambda\lambda'\dd\pi(\lambda) M'$ is strictly positive definite. If this is the case, then the second condition ((ref)) holds if there is a $c>0$ so that for any $\alpha_1,\alpha_2\in\mathcal{A}$ we have $\frac{c}{\|\alpha_{1}-\alpha_{2}\|}(\alpha_{1}-\alpha_{2})\in \mathcal{A}$. This is true, for example, if $\mathcal{A}$ is a Euclidean ball centered at zero.
The convergence rate in Theorem (ref) is identical to that of the Nadaraya-Watson estimator with observed covariates up to a log term. Setting $h\propto N^{-1/(d_\alpha+2)}$ we get convergence rate $N^{-1/(d_\alpha+2)}\sqrt{log(N)}$ which, up to a log term, is the optimal rate in stone1980optimal under Lipschitz continuity. However, the rate at which $h$ can converge to zero is restricted by the condition that $\frac{1}{h}\sqrt{\frac{log(N)}{T_{0}}} \to 0$. Thus the theorem above allows us to achieve the rate in stone1980optimal, up to log terms, if and only if $T_{0}$ grows sufficiently quickly that $N^{2/(d_\alpha+2)} / T_{0} \to 0$. In order to obtain $\sqrt{N}$-consistency and $\sqrt{N}$ centered asymptotic normality of the doubly-robust ATT estimator, we require $\max\limits_{i\in[N]} \left\vert \hat{\mu}_{i,t}^{(0)} - \mu_{i,t}^{(0)} \right\vert = o_{p}(N^{-1/4})$ and similarly for $\hat{p}_{i,t}$. In the case of a one-dimensional individual latent factor ($d_\alpha=1$), Theorem (ref) ensures that this holds for an appropriate choice of $h$ if and only if $T_{0}$ grows quickly enough that $\frac{N^{1/2}log(N)}{T_{0}} \to 0$.
Theorem (ref) below applies well-established ideas from the literature on double machine learning to this setting. The result applies to the estimator with cross-fitting as specified in Algorithm (ref).
The first result in Theorem (ref) relates the estimate $\hat{\mathrm{ATT}}_t$ to an infeasible estimate in which the first stage estimates of $\mu_{i,t}^{(0)}$ and $p_{i,t}$ are replaced by their true values. In particular, the Theorem states that under certain conditions, the difference between $\hat{\mathrm{ATT}}_t$ and the infeasible estimate disappears strictly faster than $N^{-1/2}$. It then follows from standard results that $\hat{\mathrm{ATT}}_t$ is root-$N$ asymptotically normal and centered at $ATT_t$.
The proof of Theorem (ref) proceeds by similar steps to the results in chernozhukov2018double for DML2 estimators. A complicating factor is that, unlike in standard DML2 estimation of the ATT, in our setting the estimates $\hat{\mu}^{(0)}_{i,t}$ and $\hat{p}_{i,t}$ are constructed using the pseudo-distance which includes both outcome and treatment data for individual $i$ in the pre-treatment period. That is, unlike in standard DML2 ATT estimation, the first-stage estimates $\hat{\mu}^{(0)}_{i,t}$ and $\hat{p}_{i,t}$ depend on some of the outcome data from the fold that contains individual $i$. However, using the conditional serial independence of the errors in Assumption (ref), it is straight-forward to accommodate this dependence.
Theorem (ref) requires not only that the first stage estimates are uniformly consistent over the sample, but that the product of the estimation error in $\hat{\mu}^{(0)}_{i,t}$ and $\hat{p}_{i,t}$ goes to zero uniformly strictly faster that root-$N$. A sufficient condition, mentioned earlier in this section, is that each of these estimates converges strictly faster than $N^{-1/4}$. The theorem further requires that each fold grows at the same rate as the sample data. This is satisfied if the number of folds is fixed and all of the folds are of equal size. In recent work, velez2024asymptoticpropertiesdebiasedmachine provides conditions under which DML2 estimates are centered root-$N$ asymptotically normal even if leave-one-out cross-fitting is applied, and so it may be possible to weaken this condition on the fold size in Theorem (ref).
In this section, we illustrate the finite sample properties of the proposed method in a number of numerical experiments. We also compare it with (1) the workhorse TWFE approach, and (2) the method proposed by feng2024causal.
The TWFE approach is widely used in applied research and is designed to adjust for unobserved additive individual and time fixed effects. In this section, we demonstrate that the proposed method performs comparably well in settings in which the TWFE approach is valid. We also show that the proposed method maintains good finite sample properties in a more complicated setting in which the TWFE approach fails.
Consider a large panel data setting with individuals labeled $i = 1, ..., N$ over time periods $t = 1, ..., T$, where $N \in \{50, 250\}$ and $T_0 \in \{50, 250\}$ with only one post-treatment time period in this numerical study. For the outcome model, we consider the following data generating processes:
where the individual latent factor is distributed as $\alpha_i \sim \rm{Uniform}(-1, 1)$, the time latent factor as $\lambda_t \sim \rm{Uniform}(-1, 1)$, and $u_{i,t} \sim N(0, 0.5^2)$. Here, the target estimand, the average treatment effect on the treated, is $\mathrm{ATT}_t = 0.5$. Models 1 and 2 are standard additive and interactive fixed effects models commonly used in panel data.
The treatment assignment mechanism depends on unobserved latent characteristics for each $i$. Specifically, the propensity score$p_{i,t}$ follows the model
With the configuration of factors located on compact supports, it results in roughly $p_{i,T} \in [0.2689, 0.7311]$, which satisfies the overlapping condition required for the proposed method.
We simulate $500$ replications from these models. In these simulations, we utilize the Epanechnikov kernel, that satisfies the requirements of Theorem 1 and is defined as $K(x) = \frac{3}{4} (1 - x^2) \cdot \mathbf{1}\{\vert x \vert \leq 1 \}$. We use this kernel for both the outcome and propensity score imputations in our proposed method. Using this kernel, we compared the performance of different methods: (i) TWFE; (ii) the local PCA method proposed by feng2024causal with leave-one-out cross validation for the choice of nearest neighbors\footnote{The implementation of the method proposed by feng2024causal follows the replication files available on the author's website: \url{https://github.com/yingjieum/replication-Feng_2024}.}; (iii) an infeasible doubly robust estimates in which the pseudo-distance is replaced by the oracle $\ell_2$ distance between the true $\alpha$s and in which the estimated propensity score is replaced with the true propensity score; (iv) an infeasible doubly robust estimates in which the pseudo-distance is replaced by the $\ell_2$ distance between the true $\alpha$s but in which the propensity score is unknown and estimated using the oracle distance; (iv) our proposed method.
In the numerical experiments, the bandwidth is selected between $0.05$ and $5$. velez2024asymptoticpropertiesdebiasedmachine suggests that leave-one-out estimation is the optimal cross-fitting procedure for DML2 estimators in terms of both bias and the second-order asymptotic mean squared error under certain conditions. Hence, in addition to the results from 2-fold cross-fitting and cross-validation bandwidth selection, we also implemented the proposed method using the leave-one-out procedure for this numerical exercise. In Table (ref) and (ref), we report the 95% confidence interval coverage and other statistics across $500$ replications in our simulation for each outcome model and each method. Additionally, we note that due to the non-existence of moments, some mean versions of the statistics can be distorted by outliers in the replications. This distortion is more pronounced when the number of individual $N$ is small. For this reason, we report the median absolute deviation and median confidence interval length rather than the means.
For model 1, the additive fixed effects model, the proposed method shows performance similar to the two-way fixed effects method in terms of 95% confidence interval coverage, which is under an ideal data generating process for TWFE. Additionally, the proposed method, which incorporates the pseudo distance, effectively captures the distance between unobserved latent characteristics, which is evinced by the performance of our method relative to the oracle estimators which use the true propensity score and/or the true distance in the $\alpha$s. However, there is some loss of efficiency when the sample size $N$ is small. This efficiency loss can be mitigated by increasing the number of folds or by using the leave-one-out procedure for bandwidth selection.
For model 2 with the interactive fixed effects, the TWFE method struggles to achieve approximately correct 95% confidence interval coverage. This problem worsens as $N$ increases and there are more individual latent characteristics to capture. In contrast, the proposed method demonstrates relatively good coverage for all different choices of $N$ and $T$.
We compare the performance of our approach with the method proposed by feng2024causal, which, to the best of our knowledge, is one of the few available inferential methods for average causal effects in nonlinear factor models. In this subsection, we use precisely the same data generating processes employed in feng2024causal but we consider different values of $N$ and $T$. The implementation is based on the replication code provided by the author. These numerical exercises are designed to investigate how the considered methods perform under relatively small sample sizes which may be more typical of microeconomic applications.
Again, consider a large panel data setting with individuals labeled $i = 1, ..., N$ over time periods $t = 1, ..., T$, where $N \in \{50, 250\}$ and $T_0 \in \{50, 250, 1000\}$ with only one post-treatment time period. Our target estimand is the counterfactual mean $\mathbb{E}[Y_{i,T}(0) | w_{i,T} = 1]$ which is the object of interest in the simulations of feng2024causal. Note that this object is readily calculated from our $\hat{\mathrm{ATT}}_t$ estimate because $\mathbb{E}[Y_{i,T} | w_{i,T} = 1]$ is trivially identified. We consider the following DGPs for the untreated potential outcomes:
for $t \in \{1, ..., T_0\}$. In the post-treatment time period, all three models follow
where the individual latent factor $\alpha_i \sim \rm{Uniform}(-0, 1)$ and time latent factor $\lambda_t \sim \rm{Uniform}(0, 1)$, $u_{i,t} \sim N(0, 0.5^2)$, and $\epsilon_{i,t} \sim N(0, 1)$. The propensity score is given by
For this DGP, we roughly have $p_{i,T} \in [0.4378, 0.6792]$, which satisfies the required overlapping condition.
Model 3 is a nonlinear factor model. Models 4 and 5 are the Gaussian kernel and exponential kernel. A similar simulation design is also used fernandez2021low.
The results are provided in Tables (ref), (ref), and (ref) below. We consider the same methods and report the same statistics as for the previous numerical experiments. The number of replications is $500$.
For models 3 to 5, which involve different nonlinear data generating processes, the performance of both the proposed method and the local PCA method proposed by feng2024causal differs across various combinations of $N$ and $T_0$. In models 3 and 4 with the nonlinear and Gaussian kernel DGPs, the proposed method provides good coverage across for different sample sizes. Specifically, we find that the cross-fitting procedure substantially improves the confidence interval coverage, and the leave-one-out procedure improves the accuracy of point estimation. Here, the proposed method either performs similarly or better than the local PCA method. In contrast, the local PCA method tends to underperform when the pre-treatment history is relatively short compared to the number of individuals. This issue gets amplified in model 5 with the exponential kernels DGP. In configurations with $N = 250$, the local PCA method requires a larger pre-treatment history of $T_0$ being $1000$ to achieve satisfactory confidence interval coverage. On the other hand, the proposed method with the leave-one-out procedure achieves effective coverage with a shorter $T_0$ requirement.
In summary, the proposed method provides a simple and transparent estimation and inference procedure for different types of causal estimands with their associated doubly robust score function. With the aforementioned algorithm, we can effectively collect individuals who are similar to each other in terms of their latent characteristics in a more transparent manner. This simulation study showcases that the proposed method can match or even outperform the workhorse two-way fixed effects model and the method proposed by feng2024causal across different data generating processes, requiring fewer amount of pre-treatment history in certain settings.
\addcontentsline{toc}{section}{References}