EconBase
← Back to paper

Randomization Inference for Dynamic Causal Effects in Short Panels with Autoregressive Instruments

The exact contents of citations.db main_text.text for this paper — one flattened LaTeX string, title through conclusion, appendix excluded, unmodified except for removing email addresses. This is what our citation measures are computed over.

52,745 characters

Randomization Inference for Dynamic Causal Effects in Short Panels with Autoregressive Instruments




\def\spacingset#1{\renewcommand{\baselinestretch}
{#1}\small\normalsize} \spacingset{1}




\if11
{
  \title{\bf Randomization Inference for Dynamic Causal Effects in Short Panels with Autoregressive Instruments}
  \author{Pedro Picchetti\thanks{
    [email removed].}\hspace{.2cm}\\
    Institute of Economics, PUC-Chile\\
    }
  \maketitle
} \fi

\if01
{
  \bigskip
  \bigskip
  \bigskip
  \begin{center}
    {\LARGE\bf Randomization Inference for Dynamic Causal Effects in Short Panels with Autoregressive Instruments}
\end{center}
  \medskip
} \fi

\bigskip
\begin{abstract}
I study randomization inference for dynamic causal effects in panels with many units and few periods when treatment is endogenous and an instrument is as good as randomly assigned only through the innovations of a first-order autoregressive assignment mechanism with unknown persistence. The persistence is a nuisance parameter in two senses: it determines which weighted average of heterogeneous causal effects the instrumented local projection estimand measures, and it governs the randomization distribution of any statistic built from the instrument. I propose tests that never estimate it. For each candidate value the innovations are recovered, rerandomized under a group that leaves their joint law invariant, and a randomization p-value is formed; the reported p-value is the supremum over candidate values or over an exact confidence set. Under a sharp null on the path of lag-specific effects the tests have level at most $\alpha$ for every persistence in finite samples, including the unit root, and the supremum is a maximum over finitely many points.  Under a weak null on the heterogeneity-weighted estimand a studentized version is uniformly asymptotically valid.
\end{abstract}

\noindent
{\it Keywords:} Permutation tests; Instrumental variables; Local projections; Panel data.
\vfill

\newpage
\spacingset{1.8}


\section{Introduction}\label{sec-intro}

Local projections \citep{jorda2005} are a standard tool for the estimation of dynamic causal effects using time series and panel data. When treatments are endogenous, an external shock provides exogenous variations that allows the identification of causal effects. In such applications, the instrument is rarely a white noise. Cloud cover, weather, commodity prices, narrative policy shocks, or
exposure to an aggregate shock all display persistence over time.

This paper focuses on short panel settings where persistent instruments have an autoregressive format, $Z_{i,t}=\rho_{0} Z_{i,t-1}+\varepsilon_{i,t}$, and only the innovations $\varepsilon_{i,t}$ are as good as randomly assigned. Persistence creates two
distinct problems. First, it affects the causal interpretation of the instrumented local projections estimand. with a serially correlated instrument, the horizon-$h$ coefficient loads on the effects of past and future
treatments as well as on the horizon-$h$ effect.

The second problem is associated to the inference. a design-based test rerandomizes the assignment, and the assignment that is rerandomizable is the innovation array, which is only recovered once $\rho$ is known. Plugging in an estimate is unattractive in exactly the setting we consider. With few periods and unit heterogeneity in the instrument process, the within-unit estimate of $\rho$ is biased by a term of order $(1+\rho)/T$ \citep{nickell1981}, and fixed-effects local projections inherit a bias of the same kind \citep{herbstjohannsen2024,meishengshi2026}.

In this paper, I study how to test hypotheses about causal effects, and how to construct confidence sets, with guarantees that do not depend on the unknown persistence $\rho_{0}$.

I propose to treat $\rho_{0}$ as a  nuisance parameter of the assignment mechanism, and to handle it in the manner of \citet{dufour2006} and \citet{bergerboos1994}. For each candidate value $\rho$, recover the innovations $\varepsilon_{i,t}(\rho)=Z_{i,t}-\rho Z_{i,t-1}$, apply a group of transformations under which the true innovation array is invariant in law, such as permutations of innovations across units within each period, and compute a randomization $p$-value $p(\rho)$.

At the true value the $p$-value is exact. Since the true value is unknown we report $\sup_\rho p(\rho)$, or the supremum over an exact confidence set for $\rho_{0}$ plus the confidence set's error probability. Two features make this more than a textbook application of maximized Monte Carlo tests. First, the test statistic is a polynomial of low degree in $\rho$, so $p(\cdot)$ is a step function with finitely many breakpoints that can be located exactly; the supremum is a maximum over a finite set, and no grid approximation is needed. Second, the fixed-$T$, large-$N$ structure means that the unit root is just another point in the parameter space: the limit theory is a cross-sectional central limit theorem, uniform in $\rho$ over any compact set, and the discontinuities that plague autoregressive inference as $T\to\infty$ never arise.

Under a \emph{sharp} null that fixes a common impulse-response path and so imputes all counterfactual outcomes, Theorem~\ref{thm:exact} shows that the maximized $p$-value has level at most $\alpha$ for every $\rho$ in finite samples, for any $N$, $T$ and number of Monte Carlo draws, with no restriction on the first stage and no moment assumptions. Under a \emph{weak} null that fixes only the heterogeneity-weighted estimand, for which no randomization test is exact \citep{chungromano2013,wuding2021}, Theorem~\ref{thm:asym} shows that the studentized version of the procedure is asymptotically valid as $N\to\infty$ with $T$ fixed, uniformly over $\rho$. Proposition~\ref{prop:power} gives consistency of the maximized test and identifies the exceptional alternatives against which a single-horizon test has no power; Proposition~\ref{prop:fe} treats unit effects in the outcome and in the assignment mechanism through within-unit stratified permutation schemes. Proposition~\ref{prop:strat} extends the assignment mechanism to stratified permutation schemes, and Proposition \ref{prop:cluster} extend the results to clustered designs.




    \@ifstar
      \xxxParagraphStar
      \xxxParagraphNoStar
  *{Related work.} I build on the design-based analysis of dynamic causal effects in the potential outcomes tradition of \citet{neyman1923} and \citet{fisher1935}: \citet{bojinovshephard2019} develop exact randomization tests for time-series experiments with known adaptive assignment probabilities, \citet{bojinov} extend them to panel experiments, and \citet{rambachanshephard} give nonparametric causal meaning to local projection estimands, including the instrumented version, under random assignment of the instrument. The design-based view of quasi-experiments with unknown assignment probabilities is developed by \citet{jonashesh}. This paper's departure from this setting is that the assignment mechanism is known only up to a parameter that cannot be estimated reliably. The closest precedent is \citet{shaikhtoulis2021}, who study Fisher tests under a Cox adoption model: finite-sample validity holds with known parameters and asymptotic validity with plug-in estimates.

I obtain finite-sample validity for every value of the unknown parameter, following the maximized Monte Carlo approach of \citet{dufour2006}, the exact autoregressive inference of \citet{dufourkiviet1998}, and the confidence-set approach of \citet{bergerboos1994}. The distinction between exact tests of sharp nulls and asymptotically valid studentized tests of weak nulls follows \citet{chungromano2013}, \citet{diciccioromano2017}, \citet{canayromanoshaikh2017} and \citet{wuding2021}.
The large-$N$ statements are of the uniform kind advocated by \citet{andrewsguggenberger2010}, and the supremum over $\rho$ is in the spirit of the grid bootstrap of \citet{hansen1999}.

The estimand results relate to \citet{stockwatson2018}, \citet{plagborgwolf2021} and \citet{allozagonzalosanz2025}, who study persistent instruments and shocks in time series with homogeneous effects, and to the weakly causal interpretation of two-stage least squares under heterogeneity of \citet{blandhol}. The filtered instrument is the policy innovation of \citet{angristkuersteiner2011} and \citet{angristjordakuersteiner2018} and the recentered instrument of \citet{borusyakhull2023}, who also rerandomize from a known assignment process.

Section~\ref{sec-setup} sets up the framework and the assignment mechanism. Section~\ref{sec-estimand} provides the causal decomposition of the instrumented local projection estimand and its filtered counterpart. Section~\ref{sec-inference} develops the tests. Sections~\ref{sec-mc} and~\ref{sec-app} contain simulations and the application to satellite-based environmental enforcement in the Brazilian Amazon, where cloud cover is the persistent instrument. Section~\ref{sec-conclusion} concludes. All proofs are in the Supplementary Material.

\section{Framework}\label{sec-setup}

\subsection{Potential outcomes}

Consider a balanced panel in which $N$ units are observed over $T$ periods of time. For each unit $i\in[N]$ and time period $t\in[T]$, we observe an instrumental variable $Z_{i,t}$, a treatment variable $X_{i,t}$ and a real-valued scalar outcome $Y_{i,t}$.

\begin{assumption}[No Spillovers and No Anticipation]\label{ass:sutva}
For all $i\in[N]$ and $t\in[T]$, $Y_{i,t}(x_{1:N,1:T},z_{1:N,1:T})=Y_{i,t}(x_{i,1:t},z_{i,1:t})$ and $X_{i,t}(z_{1:N,1:T})=X_{i,t}(z_{i,1:t})$.
\end{assumption}

Assumption 1 imposes that the potential outcome of unit $i$ in period $t$ depends only on the treatment and instrument paths of unit $i$ until period $t$, ruling out the possibility of spillover of both treatments and instruments across units, as well as future treatments affecting past potential outcomes. It also imposes that the potential treatment from unit $i$ in period $t$ depends only on the instrument paths of unit $i$ until period $t$.

One of the fundamental assumptions of IV settings is the exclusion restriction. Its dynamic version is stated below, alongside an additional exclusion restriction for the first stage.

\begin{assumption}[Exclusion Restrictions]\label{ass:excl}
For all $i\in[N]$ and $t\in[T]$, (i) $Y_{i,t}(x_{i,1:t},z_{i,1:t})=Y_{i,t}(x_{i,1:t})$ and (ii) $X_{i,t}(z_{i,1:t})=X_{i,t}(z_{i,t})$.
\end{assumption}

The first part of Assumption 2 is the standard exclusion restriction for dynamic IV settings. It states that the path of instruments does not affect potential outcomes directly. Instruments only affect potential outcomes to the extent that they affect treatment choices. Mapping it to the application, it implies that the history of cloud coverage over a municipality affects illegal deforestation in that municipality only through its effect on law enforcement capabilities.

The second part of Assumption 2 imposes that potential treatments in period $t$ depend only on the instruments in period $t$. Although it might seem strong in a dynamic setting, it is justifiable in many experimental and observational settings. In AGR, the capacity of the satellite to detect illegal deforestation at a given period depends on the cloud coverage below the satellite at that period. Previous coverage affects the previous law enforcement capacity but does not affect the current capacity to detect deforestation.

Most applications of IV methods with panel data use linear estimators, such as the pooled 2SLS, or 2SLS with fixed effects. In the continuous treatment/instrument setting, I assume that potential outcomes are a linear function of the treatment path, and potential treatments are a linear function of the contemporary instrument.




\begin{assumption}[Linear potential quantities]\label{ass:linear}
For all $i\in[N]$ and $t\in[T]$,
$Y_{i,t}(x_{i,1:t})=Y_{i,t}(\mathbf{0})+\sum_{p=0}^{t-1}\beta_{i,t,p}\,x_{i,t-p}$ and $X_{i,t}(z_{i,t})=X_{i,t}(0)+\pi_{i,t}\,z_{i,t}$.
\end{assumption}

The coefficients $\beta_{i,t,p}$ capture the causal effect of an increase of treatment from $p$ for unit $i$ in period $t$. For instance, $\beta_{i,t,0}$ captures the causal effect of the contemporary treatment for unit $i$ in period $t$, and $\beta_{i,t,1}$ captures the causal effect of the treatment in $t-1$ for unit $i$ in period $t$.

The fundamental behavioral assumption in IV settings is the monotonicity assumption, which is provided below.

\begin{assumption}[Monotonicity]\label{ass:mono}
For all $i\in[N]$ and $t\in[T]$, $\pi_{i,t}\geq 0$.
\end{assumption}





\subsection{Assignment mechanism}

Let $\mathcal{F}_{t-1}$ denote the sigma-field generated by all potential quantities, the initial conditions $Z_{1:N,0}$, and $Z_{1:N,1:t-1}$. We assume that the instrument follows an AR(1) process.

\begin{assumption}[AR(1) assignment mechanism with exogenous innovations]\label{ass:ar1}
There exist $\rho_{0}\in\mathcal{R}$, with $\mathcal{R}\subset\mathbb{R}$ a known compact set, and an array $\varepsilon=(\varepsilon_{i,t})_{i\in[N],t\in[T]}$ such that for all $i,t$,
\begin{equation*}
Z_{i,t}=\rho_{0} Z_{i,t-1}+\varepsilon_{i,t},\qquad \mathbb{E}\left[\varepsilon_{i,t}\mid\mathcal{F}_{t-1}\right]=0,\qquad \mathbb{V}\left(\varepsilon_{i,t}\mid\mathcal{F}_{t-1}\right)=\sigma^{2}_{i,t}\in(0,\infty).
\end{equation*}
\end{assumption}

The leading case is $\mathcal{R}=[-1,1]$. However, because $T$ is fixed, neither $|\rho_{0}|<1$ nor stationarity is required. Assumption~\ref{ass:ar1} is a design-based sequential ignorability condition \citep{ROBINS19861393,murphy}: the innovation is mean independent of potential quantities and of the past of the instrument, while the initial conditions are held fixed by conditioning. Innovation variances may differ across units and periods, and no independence across units is imposed at this stage. Unit-specific means and seasonal components in the assignment mechanism are treated in Sections~\ref{sec-fe} and~\ref{sec-general}.

\begin{definition}[Filtered instrument at a candidate persistence]\label{def:filtered}
For $\rho\in\mathcal{R}$, $\varepsilon_{i,t}(\rho):=Z_{i,t}-\rho Z_{i,t-1}$. Under Assumption~\ref{ass:ar1}, $\varepsilon_{i,t}(\rho_{0})=\varepsilon_{i,t}$ and $\varepsilon_{i,t}(\rho)=\varepsilon_{i,t}+(\rho_{0}-\rho)Z_{i,t-1}$.
\end{definition}

For each $\rho$ the map $(Z_{i,0},\varepsilon_{i,1:T})\mapsto Z_{i,0:T}$ is a bijection, so a rerandomized innovation array $\varepsilon^{*}$ corresponds to a unique rerandomized instrument path $Z^{*}_{i,t}(\rho)=\rho Z^{*}_{i,t-1}(\rho)+\varepsilon^{*}_{i,t}$, with $Z^{*}_{i,0}(\rho)=Z_{i,0}$.

\section{Estimands}\label{sec-estimand}

In this section, I derive the causal decomposition of local projection estimands. Expectations are taken over the innovations, conditional on potential quantities and initial conditions; sums over $t$ at horizon $h$ run over $\mathcal{T}_h:=\{1,\dots,T-h\}$.

The instrumented local projection (LP-IV) estimand at horizon $h$ and its filtered counterpart are
\begin{equation}\label{eq:theta}
\beta^{\mathrm{LP}}_{h}:=\frac{\sum_{t\in\mathcal{T}_h}\sum_{i}\mathbb{E}\left[Z_{i,t}Y_{i,t+h}\right]}{\sum_{t\in\mathcal{T}_h}\sum_{i}\mathbb{E}\left[Z_{i,t}X_{i,t}\right]},
\qquad
\theta_{h}:=\frac{\sum_{t\in\mathcal{T}_h}\sum_{i}\mathbb{E}\left[\varepsilon_{i,t}Y_{i,t+h}\right]}{\sum_{t\in\mathcal{T}_h}\sum_{i}\mathbb{E}\left[\varepsilon_{i,t}X_{i,t}\right]},
\end{equation}
the population analogues of a just-identified instrumental-variables regression of $Y_{i,t+h}$ on $X_{i,t}$ pooled over units and periods. At $h=0$ the first is the static pooled two-stage least squares estimand. The following result does not use the autoregressive structure; it requires only mean-zero exogenous instruments. Under the autoregressive structure, instruments have mean zero if \ref{ass:ar1} holds and $\mathbb{E}\left[Z_{i,0}\right]=0$ for all $i\in[N]$.

\begin{proposition}[LP-IV under a serially correlated instrument]\label{prop:unfiltered}
Suppose Assumptions~\ref{ass:sutva}--\ref{ass:mono} hold, $\mathbb{E}[Z_{i,t}]=0$ for all $i,t$, and $\sum_{t\in\mathcal{T}_h}\sum_i\mathbb{V}(Z_{i,t})\pi_{i,t}\neq0$. Then
\begin{equation}\label{eq:unfiltered}
\begin{gathered}
\beta^{\mathrm{LP}}_{h}=\sum_{t\in\mathcal{T}_h}\sum_{i}\lambda_{i,t}\,\beta_{i,t+h,h}
+\sum_{t\in\mathcal{T}_h}\sum_{i}\sum_{p\neq h}\lambda_{i,t,p}\,\beta_{i,t+h,p},\\
\lambda_{i,t}=\frac{\mathbb{V}(Z_{i,t})\pi_{i,t}}{\sum_{s\in\mathcal{T}_h}\sum_{j}\mathbb{V}(Z_{j,s})\pi_{j,s}},
\qquad
\lambda_{i,t,p}=\frac{\mathbb{C}\mathrm{ov}(Z_{i,t},Z_{i,t+h-p})\pi_{i,t+h-p}}{\sum_{s\in\mathcal{T}_h}\sum_{j}\mathbb{V}(Z_{j,s})\pi_{j,s}},
\end{gathered}
\end{equation}
where $p$ ranges over $\{0,\dots,t+h-1\}\setminus\{h\}$.
\end{proposition}

The LP-IV estimand can be decomposed into a convex weighted average of causal effects $\beta_{i,t+h,h}$ and a linear combination of other dynamic causal effects in which the coefficients depend on the serial correlation of the instrument. In order for the estimand to hold a \textit{weakly causal} interpretation, it must be the case the for all $i\in[N]$ $t\in [T]$, the instrument $Z_{i,t}$ is positively correlated with its lags and leads.

The serial correlation of the instrument is estimable, so a researcher can check whether the weights $\lambda_{i,t,p}$ are negative; but even when they are all positive, as under an autoregression with $\rho_{0}>0$, the horizon-$h$ effect cannot be separated from the effects at other horizons. Replacing the instrument by its innovation removes the past-treatment terms but not the future-treatment terms, as shown in Proposition 2.

\begin{proposition}[Filtered LP-IV under the AR(1) mechanism]\label{prop:filtered}
Suppose Assumptions~\ref{ass:sutva}--\ref{ass:linear} and~\ref{ass:ar1} hold and $\sum_{t\in\mathcal{T}_h}\sum_i\sigma^{2}_{i,t}\pi_{i,t}\neq0$. Then
\begin{equation}\label{eq:decomp}
\theta_{h}=\sum_{t\in\mathcal{T}_h}\sum_{i}w_{i,t}\,\beta_{i,t+h,h}
+\sum_{t\in\mathcal{T}_h}\sum_{i}\sum_{p=0}^{h-1}\omega_{i,t,p}\,\beta_{i,t+h,p},
\quad
w_{i,t}=\frac{\sigma^{2}_{i,t}\pi_{i,t}}{\sum_{t\in\mathcal{T}_h}\sum_i\sigma^{2}_{i,t}\pi_{i,t}},
\quad
\omega_{i,t,p}=\frac{\rho^{\,h-p}\sigma^{2}_{i,t}\pi_{i,t+h-p}}{\sum_{t\in\mathcal{T}_h}\sum_i\sigma^{2}_{i,t}\pi_{i,t}}.
\end{equation}
\end{proposition}

The innovation $\varepsilon_{i,t}$ is uncorrelated with lagged instruments, which removes the past-treatment terms of~\eqref{eq:unfiltered}, but it is propagated forward by the autoregression, $\mathbb{C}\mathrm{ov}(\varepsilon_{i,t},Z_{i,t+j})=\rho_{0}^{j}\sigma^{2}_{i,t}$, so it shifts the treatments in periods $t+1,\dots,t+h$, to which the horizon-$h$ outcome responds through $\beta_{i,t+h,p}$, $p<h$. For $h\geq1$ and $\rho_{0}\neq0$, $\theta_h$ is therefore not a convex combination of horizon-$h$ effects. The natural reading of $\theta_h$, valid under arbitrary heterogeneity, is as a relative impulse response: the ratio of the average response of $Y_{t+h}$ to the instrument innovation to the average impact response of $X_{it}$ \citep{stockwatson2018,plagborgwolf2021}.

\begin{remark}[Unit and period effects in the estimand]\label{rem:fe-estimand}
Applied work typically includes unit and period effects, replacing the instrument by its within-unit transformed version $\breve Z_{i,t}=Z_{i,t}-|\mathcal{T}_h|^{-1}\sum_{s\in\mathcal{T}_h}Z_{i,s}$. The decomposition of the resulting estimand, Proposition S.1 in the Supplementary Material, contains two additional terms, $\sum_{t,i}\mathbb{E}[\breve Z_{i,t}]\,Y_{i,t+h}(\mathbf{0})$ and $\sum_{t,i,p}\mathbb{E}[\breve Z_{i,t}]\,X_{i,t+h-p}(0)\beta_{i,t+h,p}$, and modified weights involving $\mathbb{C}\mathrm{ov}(\breve Z_{i,t},Z_{i,t+h-p})$. The additional terms vanish when $\mathbb{E}[Z_{i,t}]$ is constant over $t$ within each unit, or when $Y_{i,t}(\mathbf{0})$ and $X_{i,t}(0)$ are additive in unit and period effects; under Assumption~\ref{ass:ar1} with initial conditions held fixed, however, $\mathbb{E}[Z_{i,t}]=\rho^{t}Z_{i,0}$ varies with $t$, so with $T$ fixed the within transformation of the instrument is not innocuous. This is a design-based form of the incidental-parameter problem. The randomization tests of Section~\ref{sec-inference} do not transform the instrument within units, and under the sharp null they accommodate arbitrary $Y_{i,t}(\mathbf{0})$, so unit effects in outcomes cost nothing.
\end{remark}

Proposition 2 shows that the impulse response function is recovered from the filtered coefficients only through $\rho_{0}$. The parameter that must be known to construct the filtered instrument is also needed to interpret what it identifies. That provides the motivation for inference that holds for every $\rho$ at once.

\section{Randomization Inference without estimating
\texorpdfstring{$\rho_{0}$}{rho_0}}
\label{sec-inference}
\subsection{Sharp and weak null hypotheses}

Fix a maximal horizon $H\leq T-1$. Randomization tests require the null to determine the outcomes that would have been observed under any rerandomized assignment.

\begin{definition}[Sharp null on the impulse-response path]
For $b=(b_0,\dots,b_H)\in\mathbb{R}^{H+1}$, $\mathbb{H}^{s}_0(b)$ states that for all $i\in[N]$, $t\in[T]$ and all treatment paths,
$Y_{i,t}(x_{i,1:t})=Y_{i,t}(\mathbf{0})+\sum_{p=0}^{\min\{t-1,H\}}b_p\,x_{i,t-p}$.
\end{definition}

$\mathbb{H}^{s}_0(b)$ imposes a common linear impulse-response path with memory $H$ and leaves $Y_{i,t}(\mathbf{0})$ and the first stage unrestricted. Typically, researchers are interested on the Fisher null of no effects, $b=\textbf{0}$.


Under $\mathbb{H}_{0}^{s}(b)$, the adjusted outcomes
\begin{equation}\label{eq:W}
W_{i,t}(b):=Y_{i,t}-\sum_{p=0}^{\min\{t-1,H\}}b_p\,X_{i,t-p}
\end{equation}
equal $Y_{i,t}(\mathbf{0})$ and are nonstochastic. For the fisher null, $W_{i,t}(b)=Y_{i,t}=Y_{i,t}(\mathbf{0})$. Inverting the test over $b$ gives a confidence set for the path; sets for a single $b_h$ follow by projection.

\begin{definition}[Weak null on the filtered estimand]
For $h\leq H$ and $\theta\in\mathbb{R}$, $\mathbb{H}^{w}_0(h,\theta)$ states that $\theta_h=\theta$, with $\theta_h$ defined in~\eqref{eq:theta} at the true $\rho_{0}$.
\end{definition}

$\mathbb{H}^{w}_0(h,\theta)$ allows arbitrary heterogeneity in $\beta_{i,t,p}$ and $\pi_{i,t}$ and does not determine counterfactuals. We use the adjusted outcomes $V_{i,t+h}(\theta):=Y_{i,t+h}-\theta X_{i,t}$, $t\in\mathcal{T}_h$, for which $\sum_{t\in\mathcal{T}_h}\sum_i\mathbb{C}\mathrm{ov}(\varepsilon_{i,t},V_{i,t+h}(\theta))=0$ under $\mathbb{H}^{w}_0(h,\theta)$.

\subsection{Randomization hypothesis, statistics and $p$-values}\label{sec-pvalues}

Let $\mathcal{G}$ be a finite group of transformations of $N\times T$ arrays, $g\varepsilon$ the transformed array.

\begin{assumption}[Randomization hypothesis]\label{ass:invariance}
Conditional on potential quantities and initial conditions, $g\varepsilon\overset{d}{=}\varepsilon$ for every $g\in\mathcal{G}$.
\end{assumption}

The \emph{cross-sectional group} $\mathcal{G}_{\mathrm{cs}}$ consists of $g=(\sigma_1,\dots,\sigma_T)$, $\sigma_t$ a permutation of $[N]$, acting by $(g\varepsilon)_{i,t}=\varepsilon_{\sigma_t(i),t}$. Assumption~\ref{ass:invariance} then requires innovations to be exchangeable across units within each period, as when they are independent across units with a period-specific distribution, possibly with common period shocks. The \emph{within-unit group} $\mathcal{G}_{\mathrm{wu}}$ consists of $g=(\tau_1,\dots,\tau_N)$, $\tau_i$ a permutation of $[T]$, acting by $(g\varepsilon)_{i,t}=\varepsilon_{i,\tau_i(t)}$, and requires exchangeability over time within each unit, allowing unit-specific innovation laws. Stratified versions, in which permutations act within blocks of a partition of $[N]\times[T]$, are covered in Section~\ref{sec-fe}. We present the main results for $\mathcal{G}_{\mathrm{cs}}$.

For an array $a$, $\bar a_t=N^{-1}\sum_ia_{i,t}$ and $\tilde a_{i,t}=a_{i,t}-\bar a_t$ denote within-period demeaning. For $r\in\mathcal{R}$ and an array $U$ of adjusted outcomes, equal to $W(b)$ or $V(\theta)$, define
\begin{equation}\label{eq:stat}
\begin{gathered}
T_h(\rho;U)=\sum_{t\in\mathcal{T}_h}\sum_{i=1}^{N}\tilde\varepsilon_{i,t}(\rho)\,\tilde U_{i,t+h},
\qquad
\hat s^{2}_h(\rho;U)=\sum_{i=1}^{N}\Big(\sum_{t\in\mathcal{T}_h}\tilde\varepsilon_{i,t}(\rho)\,\tilde U_{i,t+h}\Big)^{2},\\
S_h(\rho;U)=\frac{|T_h(\rho;U)|}{\hat s_h(\rho;U)},
\qquad
S(\rho;U)=\max_{0\leq h\leq H}S_h(\rho;U).
\end{gathered}
\end{equation}
For the sharp null any measurable function of $(\varepsilon(\rho),W(b))$ is admissible; we use $S(\rho;W(b))$. For the weak null we use $S_h(\rho;V(\theta))$. Transformed statistics replace $\varepsilon(\rho)$ by $g\varepsilon(\rho)$; since $\mathcal{G}_{\mathrm{cs}}$ permutes within periods, $\tilde\varepsilon(\rho)$ is permuted in the same way. Because the first stage is unknown, a Wald statistic based on the IV estimator cannot be rerandomized (the treatment under a rerandomized path, $X_{i,t}(0)+\pi_{i,t}Z^{*}_{i,t}(\rho)$, depends on $\pi_{i,t}$); the reduced-form statistic avoids this and is robust to weak first stages \citep{andersonrubin1949}.

The procedure is as follows: draw $g_1,\dots,g_M$ independently and uniformly from $\mathcal{G}$ once, and use the same draws for every $\rho$. The randomization $p$-value at $\rho$, the \emph{maximized Monte Carlo} (MMC) $p$-value, and the \emph{confidence-set} $p$-value are, respectively,
\begin{equation}\label{eq:pvals}
\begin{gathered}
p_M(\rho)=\frac{1+\sum_{m=1}^{M}\mathbf{1}\{S(g_m\varepsilon(\rho);U)\geq S(\varepsilon(\rho);U)\}}{M+1},\\
p^{\sup}_{M}=\sup_{\rho\in\mathcal{R}}p_M(\rho),
\qquad
p^{\mathrm{BB}}_{M,\gamma}=\sup_{\rho\in C_{1-\gamma}}p_M(\rho)+\gamma,
\end{gathered}
\end{equation}
with $\sup_\emptyset=0$, $\gamma\in(0,\alpha)$, and $C_{1-\gamma}=\{\rho\in\mathcal{R}:p^{\rho_{0}}_M(\rho)>\gamma\}$ an exact randomization confidence set for $\rho_{0}$ obtained by inverting a test of the hypothesis that $\varepsilon(\rho)$ is $\mathcal{G}$-invariant. For the latter we use the orthogonality statistic
\begin{equation}\label{eq:aux}
B(\rho)=\Big|\sum_{t=1}^{T}\sum_{i}\tilde\varepsilon_{i,t}(\rho)\,\tilde Z_{i,t-1}\Big|,
\end{equation}
whose transformed version $B(g\varepsilon(\rho))$ is computed with the lagged instrument rebuilt from the transformed innovations, $Z^{*}_{i,t-1}(\rho)$, so that it is a function of $(g\varepsilon(\rho),Z_{1:N,0})$ alone; $p^{\rho_{0}}_M(r)$ is its $p$-value as in~\eqref{eq:pvals}. At $\rho=\rho_{0}$ the innovations are orthogonal to the lagged instrument, while $\mathbb{E}[\varepsilon_{i,t}(\rho)Z_{i,t-1}]=(\rho_{0}-\rho)\mathbb{E}[Z^{2}_{i,t-1}]$ is nonzero for every $\rho\neq\rho_{0}$. The test rejects when the chosen $p$-value is at most $\alpha$; Algorithm~\ref{alg:main} summarizes the computation.

\begin{algorithm}[H]
\spacingset{1.15}
\caption{$\rho$-free randomization $p$-value}\label{alg:main}
\begin{algorithmic}[1]
\Require Panel $\{Z_{i,0:T},X_{i,1:T},Y_{i,1:T}\}_{i=1}^{N}$; null ($b$ for $H^{s}_0$, or $(h,\theta)$ for $H^{w}_0$); group $\mathcal{G}$; $M$; $\mathcal{R}$; $\alpha$; optionally $\gamma\in(0,\alpha)$.
\State Draw $g_1,\dots,g_M$ i.i.d. uniform on $\mathcal{G}$ and store them.
\State Form adjusted outcomes $U=W(b)$ by~\eqref{eq:W} or $U=V(\theta)$.
\State Candidate set $\mathcal{R}^{\dagger}\subset\mathcal{R}$: the endpoints of $\mathcal{R}$ (or a fine grid).
\For{each $\rho\in\mathcal{R}^{\dagger}$}
  \State $\varepsilon_{i,t}(\rho)\gets Z_{i,t}-rZ_{i,t-1}$, demeaned within periods.
  \State Compute $S(\varepsilon(\rho);U)$ and $S(g_m\varepsilon(\rho);U)$, $m\leq M$, by~\eqref{eq:stat}; set $p_M(\rho)$ by~\eqref{eq:pvals}.
  \If{$\gamma$ is supplied} rebuild $Z^{*}(\rho)$ from $g_m\varepsilon(\rho)$, compute $B(\rho)$, $B(g_m\varepsilon(\rho))$ and $p^{\rho_{0}}_M(\rho)$. \EndIf
\EndFor
\State $p^{\sup}_M\gets\max_{\rho\in\mathcal{R}^{\dagger}}p_M(\rho)$; if $\gamma$ is supplied, $C_{1-\gamma}\gets\{\rho\in\mathcal{R}^{\dagger}:p^{\rho_{0}}_M(\rho)>\gamma\}$ and $p^{\mathrm{BB}}_{M,\gamma}\gets\max_{\rho\in C_{1-\gamma}}p_M(\rho)+\gamma$.
\State Reject if the chosen $p$-value is at most $\alpha$; confidence sets collect the non-rejected $b$ (or $\theta$).
\end{algorithmic}
\end{algorithm}



Theorem 1 shows that the test has size $\alpha$ under the null uniformly over $\rho$.

\begin{theorem}[Exact size for every $\rho$]\label{thm:exact}
Suppose Assumptions~\ref{ass:sutva}--\ref{ass:linear},~\ref{ass:ar1} and~\ref{ass:invariance} hold and $\mathbb{H}^{s}_0(b)$ is true. Then, conditional on potential quantities and initial conditions, for every $\alpha\in(0,1)$, $N\geq2$, $T\geq1$, $M\geq1$ and $\rho\in\mathcal{R}$: (i) $\mathbb{P}(p_M(\rho)\leq\alpha)\leq\alpha$; (ii) $\mathbb{P}(p^{\sup}_M\leq\alpha)\leq\alpha$; (iii) for every $\gamma\in(0,\alpha)$, $\mathbb{P}(\rho\in C_{1-\gamma})\geq1-\gamma$ and $\mathbb{P}(p^{\mathrm{BB}}_{M,\gamma}\leq\alpha)\leq\alpha$.
\end{theorem}

Under $\mathbb{H}^{s}_0(b)$, the adjusted outcomes are fixed, so the statistic is a fixed function of the innovation array. Assumption~\ref{ass:invariance} ensures that  $(S(\varepsilon),S(g_1\varepsilon),\dots,S(g_M\varepsilon))$ exchangeable conditional on the orbit of $\varepsilon$ under $\mathcal{G}$, from which the results follow. Theorem~\ref{thm:exact} uses no moment or distributional assumption beyond the invariance, and no restriction on the first stage; the case of unit roots ($\rho_{0}=1$) is covered. The cost is power: $p^{\sup}_M$ exceeds $p_M(\rho_{0})$ by the amount that $p_M(\rho)$ exceeds it at wrong values of $\rho$. The confidence-set version trades $\gamma$ of level for a set that shrinks to $\rho$ as $N$ grows, as formalized in Proposition \ref{prop:power}.


\subsection{Asymptotic validity under the weak null}\label{sec-asym}

Let $N\to\infty$ with $T$ and $H$ fixed along a sequence of populations indexed by $N$; all quantities, including $\rho_{0}=\rho_{0N}\in\mathcal{R}$, may depend on $N$. Fix $h$ and $\theta$, write $V_{i,t+h}=V_{i,t+h}(\theta)$, $m_{t+h}=N^{-1}\sum_j\mathbb{E}[V_{j,t+h}]$, $\xi_i=\sum_{t\in\mathcal{T}_h}\varepsilon_{i,t}(V_{i,t+h}-m_{t+h})$, $\mu_i=\mathbb{E}[\xi_i]=\sum_t\mathbb{C}\mathrm{ov}(\varepsilon_{i,t},V_{i,t+h})$, $v_N=N^{-1}\sum_i\mathbb{V}(\xi_i)$ and $m^{2}_N=N^{-1}\sum_i\mu^{2}_i$.

\begin{assumption}[Regularity for large $N$]\label{ass:reg}
Conditional on potential quantities and initial conditions: (a) the vectors $\varepsilon_{i,1:T}$ are independent across $i$ and $\mathcal{G}_{\mathrm{cs}}$-invariant; (b) for some $\delta>0$ and $C<\infty$ not depending on $N$, $\mathbb{E}|\varepsilon_{i,t}|^{4+\delta}\leq C$, and $|Z_{i,0}|$, $|Y_{i,t}(\mathbf{0})|$, $|X_{i,t}(0)|$, $|\beta_{i,t,p}|$, $|\pi_{i,t}|$ are bounded by $C$; (c) $\liminf_Nv_N>0$, and for each $t\in\mathcal{T}_h$, $\liminf_NN^{-1}\sum_i\sigma^{2}_{i,t}>0$ and $\liminf_NN^{-1}\sum_i\mathbb{E}[(V_{i,t+h}-m_{t+h})^{2}]>0$.
\end{assumption}

Assumption 7 provides the regularity conditions which ensure that Lyapunov's condition hold. Because $T$ is fixed, (b) bounds the moments of $Z_{i,t}=\rho^{t}Z_{i,0}+\sum_{k\leq t}\rho^{t-k}\varepsilon_{i,k}$ uniformly over $\rho\in\mathcal{R}$ for any compact $\mathcal{R}$. I use this conditions to derive the asymptotic distribution for the p-value estimator in Theorem 2.

\begin{theorem}[Uniform asymptotic validity under the weak null]\label{thm:asym}
Suppose Assumptions~\ref{ass:sutva}--\ref{ass:linear},~\ref{ass:ar1} and~\ref{ass:reg} hold, $\mathcal{G}=\mathcal{G}_{\mathrm{cs}}$, the statistic is $S_h(r;V(\theta))$, $M=M_N\to\infty$, and $\mathbb{H}^{w}_0(h,\theta)$ is true along the sequence. Then for every sequence $\rho_N\in\mathcal{R}$,
\begin{equation*}
\mathbb{P}\left(p_{M}(\rho_N)\leq\alpha\right)-2\Big(1-\Phi\Big(\frac{z_{1-\alpha/2}}{\sqrt{\kappa_N}}\Big)\Big)\to0,
\qquad \kappa_N=\frac{v_N}{v_N+m^{2}_N}\in(0,1],
\end{equation*}
where $\Phi$ is the standard normal distribution function and $z_{1-\alpha/2}$ its $(1-\alpha/2)$ quantile. Consequently $\limsup_N\sup_{\rho\in\mathcal{R}}\mathbb{P}_\rho(p^{\sup}_M\leq\alpha)\leq\alpha$ and $\limsup_N\sup_{\rho\in\mathcal{R}}\mathbb{P}_\rho(p^{\mathrm{BB}}_{M,\gamma}\leq\alpha)\leq\alpha$.
\end{theorem}

The randomization distribution of the studentized statistic converges to the standard normal, while its sampling distribution under the weak null converges to a normal with variance $\kappa_N\leq1$. The shrinkage is the usual design-based conservativeness: the unit-clustered variance estimator in~\eqref{eq:stat} estimates $\mathbb{V}(\xi_i)+\mu^{2}_i$, and $\mu_i\neq0$ is possible under heterogeneity although $\sum_i\mu_i=0$ under the null \citep{jonashesh}. The uniformity over $\rho$ comes for free from the triangular-array argument, in which $\rho_N$ enters only through uniformly bounded coefficients. It is important to note that this holds only under a  fixed $T$. With $T\to\infty$ the limit law changes discontinuously at $\rho_{0}=1$ \citep{mikusheva2007} and uniform validity requires grid or hybrid constructions \citep{hansen1999,andrewsguggenberger2009}.



Validity for every $\rho$ is bought with a supremum, and the question is at what cost. Consider the sharp-null test with $\mathcal{G}_{\mathrm{cs}}$ and the joint statistic $S(\rho;W(b))$, and suppose the data are generated by the homogeneous linear model with true path $\beta\neq b$, so that $W_{i,t}(b)=Y_{i,t}(\mathbf{0})+\sum_p(\beta_p-b_p)X_{i,t-p}$ is stochastic. Let $\mu_h(\rho):=\lim_NN^{-1}\sum_{t\in\mathcal{T}_h}\sum_i\mathbb{C}\mathrm{ov}(\varepsilon_{i,t}(\rho),W_{i,t+h}(b))$, assumed to exist; by Definition~\ref{def:filtered} each $\mu_h(\cdot)$ is an affine function of $r$, $\mu_h(\rho)=\mu_h(\rho_{0})+(\rho_{0}-\rho)\nu_h$.

\begin{proposition}[Consistency]\label{prop:power}
Suppose Assumption~\ref{ass:reg} holds with $V$ replaced by $W(b)$ and, in (c), $\inf_{\rho\in\mathcal{R}}\liminf_NN^{-1}\sum_i\mathbb{V}\big(\sum_t\varepsilon_{i,t}(\rho)\tilde W_{i,t+h}\big)>0$ for each $h\leq H$. Then:
(i) if the affine functions $\mu_0(\cdot),\dots,\mu_H(\cdot)$ have no common zero on $\mathcal{R}$, $\mathbb{P}(p^{\sup}_M\leq\alpha)\to1$ for every fixed $M\geq\alpha^{-1}-1$ and for $M=M_N\to\infty$;
(ii) under Assumption~\ref{ass:ar1} with $\liminf_NN^{-1}\sum_{i,t}\mathbb{E}[\tilde Z^{2}_{i,t-1}]>0$, $\sup_{\rho\in C_{1-\gamma}}|\rho-\rho_{0}|\to_p0$, so $p^{\mathrm{BB}}_{M,\gamma}-p_M(\rho_{0})\to_p\gamma$ and $\mathbb{P}(p^{\mathrm{BB}}_{M,\gamma}\leq\alpha)\to1$ whenever $\mu_h(\rho_{0})\neq0$ for some $h\leq H$.
\end{proposition}

Part (i) of Proposition \ref{prop:power} identifies the alternatives against which the maximized test is inconsistent,which are those for which some wrong persistence $\rho^\ast\in\mathcal{R}$ makes the adjusted outcomes orthogonal to the filtered instrument at every horizon simultaneously. For a single horizon ($H=0$) $\mu_0$ is a nonconstant affine function with a root $\rho^\ast=\rho_{0}+\mu_0(\rho_{0})/\nu_0$ whenever $\nu_0\neq0$, and the test has no power against the alternative whenever $\rho^\ast\in\mathcal{R}$. Part (ii) says that the confidence-set test is consistent against every alternative that the infeasible test at the true $\rho_{0}$ detects, at the cost of $\gamma$ in asymptotic level. Under local alternatives $b_N=\beta+N^{-1/2}\delta$ the vector of statistics $\{(T_h(\rho;W(b_N))/\sqrt N)_{h\leq H}:\rho\in\mathcal{R}\}$ converges to a Gaussian process in $\rho$ that is affine in $\rho$ with drift $\dot\mu_h(\rho)\delta$ and the asymptotic local power of the maximized test is $\mathbb{P}(\inf_{\rho\in\mathcal{R}}\max_hS_{h,\infty}(\rho)\geq z)$ for the limiting studentized process; this quantity is not available in closed form and we evaluate it by simulation in Section~5 rather than state it as a theorem.

\subsection{Unit effects, Stratification and Clustered Designs}\label{sec-fe}

Unit fixed effects in outcomes, treatments and instruments are pervasive in empirical applications that use short panels. The sharp-null tests handle the first two for free: under $\mathbb{H}^{s}_0(b)$ the adjusted outcomes equal $Y_{i,t}(\mathbf{0})$, which may contain arbitrary unit and period effects, and since any function of $W(b)$ is an admissible statistic, $W$ may be two-way demeaned in order to gain power. Only the innovation array is constrained by the randomization hypothesis. Unit effects in the assignment mechanism are different, because they break exchangeability across units. The next proposition shows that the uniform randomization inference procedures can be modified to remain valid under unit fixed effects.

\begin{proposition}[Unit Effects]\label{prop:fe}
Suppose Assumptions~\ref{ass:sutva}--\ref{ass:linear} hold and $\mathbb{H}^{s}_0(b)$ is true.
(i) \textbf{Unit effects in outcomes.} Theorem~\ref{thm:exact} holds with $W(b)$ replaced by any fixed transformation of it, for any $\mathcal{G}$ satisfying Assumption~\ref{ass:invariance}.
(ii) \textbf{Known unit means in the mechanism.} Suppose $Z_{i,t}=A_i+\rho_{0}(Z_{i,t-1}-A_i)+\varepsilon_{i,t}$ with $A_i$ observed (for instance from pre-sample data) and $\varepsilon$ satisfying Assumptions~\ref{ass:ar1} and~\ref{ass:invariance} with $\mathcal{G}=\mathcal{G}_{\mathrm{cs}}$. Then Theorems~\ref{thm:exact}--\ref{thm:asym} and Proposition~\ref{prop:filtered} hold with $Z_{i,t}$ replaced by $Z_{i,t}-A_i$.
(iii) \textbf{Unknown unit means in the mechanism.} Suppose $Z_{i,t}=A_i+\rho_{0}(Z_{i,t-1}-A_i)+\varepsilon_{i,t}$ with $A_i$ unknown and, conditional on potential quantities and initial conditions, $\varepsilon_{i,1:T}$ exchangeable within each unit. Then $\varepsilon_{i,t}(\rho_{0})=(1-\rho_{0})A_i+\varepsilon_{i,t}$ is $\mathcal{G}_{\mathrm{wu}}$-invariant and Theorem~\ref{thm:exact} holds with $\mathcal{G}=\mathcal{G}_{\mathrm{wu}}$ and statistics~\eqref{eq:stat} with $\tilde\varepsilon$ demeaned within units, without estimating $A_i$.
\end{proposition}

Proposition 4 is divided into three parts, each one asssociated to a different motivation for the use of unit effects. Part (i) deals with the standard inclusion of unit fixed effects because of time-invariant, individual-specific heterogeneity in the outcomes. Part (ii) is the recommended route when an external measure of the unit mean exists, as with a pre-sample climatology for a weather instrument: the mechanism becomes a known covariate-dependent map of the innovations, and nothing changes. Parts (iii) is exact and need no estimation of the unit or seasonal components: the within-unit scheme absorbs $(1-\rho_{0})A_i$ because it is constant over the permuted coordinates.

For the case in which there are unknown unit means in the assignment mechanism, if the unknown time-invariant component $A_{i}$ is fixed within known groups of units, then the procedure can be modified to perform permutations across known strata, and it remains valid.

\begin{proposition}[Stratification]\label{prop:strat}
Suppose Assumptions~\ref{ass:sutva}--\ref{ass:linear} hold and $\mathbb{H}^{s}_0(b)$ is true. Suppose that $A_{i}$ are unknown constants within known blocks $\mathcal{B}_1,\dots,\mathcal{B}_K$ of units and innovations are exchangeable across units within blocks and periods. Then,  Theorem~\ref{thm:exact} holds with the block-stratified group $\mathcal{G}^{\mathcal{B}}_{\mathrm{cs}}$ of within-block, within-period permutations.
\end{proposition}

It is also common to see applications in which the assignment is determined at a more aggregate level than the unit level. For instance, there might be  spatial dependence of the innovations within geographic clusters, such as microregions. If the assignment is determined at the cluster level, then the inference procedure can be modified to produce tests with exact size.

\begin{proposition}[Clustered Designs]\label{prop:cluster}
Suppose Assumptions~\ref{ass:sutva}--\ref{ass:linear} hold and $\mathbb{H}^{s}_0(b)$ is true. Suppose units are partitioned into clusters $c\in[K]$ of equal size $n$, and that, conditional on potential quantities and initial conditions, the cluster vectors $(\varepsilon_{i,t})_{i\in c}$ are exchangeable across clusters within each period, with arbitrary dependence within clusters. Then Theorem~\ref{thm:exact} holds with the cluster group $\mathcal{G}_{\mathrm{cl}}$ of within-period permutations of cluster labels. With unequal cluster sizes the same holds for permutations within size strata.
\end{proposition}

Proposition \ref{prop:cluster} is divided into two cases. In the first, all clusters have the same size. The procedure remains valid as long as the permutations are restricted to observations within cluster. In the second, clusters have different sizes. In such cases, beyond doing the permutation within clusters, it is necessary to account for the different sizes of the clusters.


\section{Monte Carlo Simulations}\label{sec-mc}

In this section, I conduct Monte Carlo simulations to assess the finite-sample properties of the proposed inference procedures, and compare them with existing alternatives in the literature.

The main design is a short panel with a unit level in the instrument and a unit effect in the outcome that loads on the same level. Innovations are i.i.d.\ Gaussian with standard deviation $0.094$. The instrument is the autoregression $Z_{i,t}=\rho_{0} Z_{i,t-1}+\varepsilon_{i,t}$, so the filtered instrument at the true $\rho_{0}$ is the innovation and does not contain the unit level. The initial condition is $Z_{i,0}=A_i+e_{i,0}$, with $A_i$ of standard deviation $0.30$ and $e_{i,0}$ drawn from the innovation's stationary scale ($|\rho_{0}|<1$) or from $\mathcal{N}(0,0.094^2)$ at the unit root. The outcome is $Y_{i,t}=\beta X_{i,t}+2A_i+\alpha_i+u_{i,t}$, with $\alpha_i$ of standard deviation $0.30$ and $u$ of standard deviation $0.60$. The treatment is $X_{i,t}=\pi Z_{i,t}+v_{i,t}$ with $\pi=-18$ and $v$ of standard deviation $12$, and $\mathrm{Corr}(u,v)=0.4$. Because $\varepsilon_{i,t}(\rho)=\varepsilon_{i,t}$ is independent of $A_i$, cross-sectional permutation is exact at the true $\rho$ (Theorem~\ref{thm:exact}).

The plug-in estimates $\rho_{0}$ by the within-unit estimator and evaluates the same statistic, and a Wald test, at that point. That estimator is biased at fixed $T$ \citep{nickell1981}.

For the size exercise, we set $\beta=0$. The results are reported in Table 1.

\begin{table}[htbp]
\centering
\small
\caption{Null rejection frequencies at $\alpha=0.05$, selling design. Oracle is $p_M(\rho)$. $\hat\rho$ is the within-unit estimator. AR compares $S_0(\hat\rho)$ to the normal critical value; Wald is the plug-in $t$ test of $\theta_0=0$. $F$ is the mean unit-clustered first-stage statistic at the true $\rho$. $N=150$ except the last row, which has $N=500$. $400$ replications.}\label{tab:size}
\begin{tabular}{llccccccc}
\toprule
$T$ & $\rho_{0}$ & $\hat\rho$ & $F$ & $p_M(\rho)$ & $p^{\sup}$ & $p^{\mathrm{BB}}$ & AR & Wald \\
\midrule
$6$  & $0.5$ & $0.39$ & $19.5$ & $0.055$ & $0.000$ & $0.010$ & $0.535$ & $0.388$ \\
$6$  & $0.9$ & $0.57$ & $17.0$ & $0.060$ & $0.000$ & $0.055$ & $1.000$ & $1.000$ \\
$6$  & $1$   & $0.57$ & $15.1$ & $0.035$ & $0.013$ & $0.033$ & $1.000$ & $1.000$ \\
$12$ & $0.5$ & $0.42$ & $38.0$ & $0.045$ & $0.000$ & $0.025$ & $0.152$ & $0.102$ \\
$12$ & $0.9$ & $0.74$ & $32.9$ & $0.052$ & $0.000$ & $0.060$ & $0.995$ & $0.995$ \\
$12$ & $1$   & $0.77$ & $28.2$ & $0.045$ & $0.025$ & $0.043$ & $1.000$ & $1.000$ \\
\midrule
$6$ ($N{=}500$) & $0.9$ & $0.58$ & $52.9$ & $0.062$ & $0.048$ & $0.062$ & $1.000$ & $1.000$ \\
\bottomrule
\end{tabular}
\end{table}

The oracle p-value stays near $\alpha$, from $0.035$ to $0.062$, including the unit root case. Both the plug-in AR and the Wald procedures exhibit rejection rates greater than the desired $0.05$. When it comes to the p-values proposed in Section 4, rejection rates are closer to the desired target. The $p$-value $p^{BB}$ stays close to the target in all specifications and $p^{sup}$ lies below the target in all exercises. It is therefore valid, but much more conservative. Overall, the results of the exercise show that the $\rho$-free tests hold the null uniformly over $\rho$ and $T$, while the plug-in tests reject the null when the persistence in assignment becomes too high.

For the size exercise, I set $\beta=-0.045$. The results are summarized in Figure 1 and Table 2.

\begin{figure}[htbp]
\centering
\includegraphics[width=\textwidth]{mc-size-power.png}
\caption{Selling design, $N=150$. Top: null rejection frequencies. Bottom: power against $\beta=-0.045$. Black circles are $p_M(\rho)$, blue triangles $p^{\sup}$, red squares $p^{\mathrm{BB}}$, green crosses the plug-in AR test at the within estimator. The dashed line is $\alpha=0.05$.}\label{fig:mc}
\end{figure}

\begin{table}[htbp]
\centering
\small
\caption{Power at $h=0$ against $\beta=-0.045$, selling design, $200$ replications. The plug-in column is the AR test at the within estimator. $N=150$ except the last row.}\label{tab:power}
\begin{tabular}{llccccc}
\toprule
$T$ & $\rho$ & $F$ & $p_M(\rho)$ & $p^{\sup}$ & $p^{\mathrm{BB}}$ & AR \\
\midrule
$6$  & $0.5$ & $19.1$ & $0.70$ & $0.00$ & $0.43$ & $1.00$ \\
$6$  & $0.9$ & $16.8$ & $0.57$ & $0.00$ & $0.52$ & $1.00$ \\
$6$  & $1$   & $15.9$ & $0.53$ & $0.53$ & $0.49$ & $1.00$ \\
$12$ & $0.5$ & $37.3$ & $0.94$ & $0.00$ & $0.87$ & $1.00$ \\
$12$ & $0.9$ & $33.9$ & $0.90$ & $0.02$ & $0.86$ & $1.00$ \\
$12$ & $1$   & $30.2$ & $0.86$ & $0.86$ & $0.83$ & $1.00$ \\
\midrule
$6$ ($N{=}500$) & $0.9$ & $50.8$ & $0.99$ & $0.45$ & $0.98$ & $1.00$ \\
\bottomrule
\end{tabular}
\end{table}

The plug-in rejection rate of 1 in every cell is the size distortion from Table 1 carried into the alternative, so it should not be interpreted as evidence of power. The $\rho$-free tests are closest to the oracle in the exercises where the persistence is high. The supremum test, however, has no power in the cases where the persistence parameter is not the unit root.

The qualitative conclusion is that the confidence-set test delivers the oracle’s power where persistence is high, and the plain supremum does not.

\section{Empirical Application: Law Enforcement and Deforestation}\label{sec-app}

In this section, I revisit the work of \cite{agr2023} (hereafter referred to as AGR, 2023). The authors investigate the effects of a satellite law enforcement program, the DETER program, on deforestation in the Brazilian Amazon.

In 2004, the Brazilian government launched the Action Plan for the Prevention and Control of Deforestation in the Legal Amazon (PPCDAm). The program was a response to the growing concerns regarding the dangers of deforestation of tropical forests.

One of the main innovations of the PPCDAm was the development of a satellite-based system that regularly collected and processed georeferenced imagery on Amazon land cover to detect forest loss, the Real-Time System for Detection of Deforestation (DETER). Deforestation alerts that came from DETER imagery became the cornerstone for law enforcement. Officers visited alert sites and applied sanctions if evidence of illegal deforestation was found. Law enforcement officers would typically issue a fine for every environmental infraction they detected, but other forms of penalty, such as he seizure and destruction of products and equipment, are also contemplated by law.


AGR (2023) estimate the effects of law enforcement, as a function of the number of fines issued by the DETER satellite, on deforestation using panel data from 2006 to 2016. To address the issue of reverse causality between deforestation and law enforcement, the authors use an IV approach, leveraging variation in cloud coverage as exogenous variation on law enforcement. The intuition behind the strategy is that cloud coverage blocks visibility in satellite imagery and thereby limits DETER’s capacity to detect changes in land cover patterns and therefore law enforcement.

The benchmark is the annual municipality regression in \citet{agr2023}. Deforestation in year $t$, in the inverse hyperbolic sine of the PRODES increment, is regressed on the count of deforestation-related fines in year $t-1$, instrumented by the DETER cloud share in year $t-1$. The regression has municipality and year fixed effects. Precipitation and temperature are lagged one year with the instrument; PRODES cloud and non-observable area, and six municipality-weighted first-semester commodity prices, are contemporaneous.

\begin{table}[htbp]
\centering
\small
\caption{The AGR benchmark and the filtered test at horizon $0$. Published entries are from \citet{agr2023}, Table~2. The replication is two-way fixed effects with the controls above and standard errors clustered by municipality and microregion--year. The filtered column is the paper's within-period statistic on the same lead, after municipality and year means are removed, evaluated at the Han--Phillips $\hat\rho$. $p^{\sup}$ and $p^{\mathrm{BB}}$ test $\theta_0=0$.}\label{tab:app}
\begin{tabular}{lccc}
\toprule
& Published & Replicated 2SLS & Filtered LP-IV \\
\midrule
$\theta$ on fines, IHS & $-0.050$ $(0.024)$ & $-0.050$ $(0.027)$ & $-0.036$ $(0.015)$ \\
First stage on cloud & $-9.66$ ($F=10.1$) & $-8.12$ ($F=8.1$) & \\
$\hat\rho$ (Han--Phillips) & & & $0.33$ $(0.03)$ \\
$p^{\sup}$ for $\theta_0=0$ & & & $0.35$ \\
$p^{\mathrm{BB}}$ for $\theta_0=0$ & & & $0.014$ \\
$p^{\mathrm{BB}}$ $95\%$ set & & & $[-0.069,\ -0.019]$ \\
Plug-in Wald $95\%$ & & & $[-0.065,\ -0.007]$ \\
State-mean $p^{\sup}$ / $p^{\mathrm{BB}}$ & & & $0.81$ / $0.69$ \\
\bottomrule
\end{tabular}
\end{table}

Table~\ref{tab:app} provides the comparison between the results reported in AGR, my replication of these results and the filtered 2SLS.

The filtered estimator uses the within-period statistic on the fixed-effect residuals, so the lag of the transformed instrument is the transformed lag. $\hat\rho$ is $0.33$ (standard error $0.03$). At that value,$\hat\theta_0=-0.036$. At $\rho=0$, the same statistic returns $-0.051$, which is the unfiltered two-way IV. The randomization confidence set for $\rho$ is the grid point $\{0.35\}$. The Berger--Boos test rejects $\theta_0=0$ ($p^{\mathrm{BB}}=0.014$), and its $95\%$ set is $[-0.069,-0.019]$. The plug-in Wald interval $[-0.065,-0.007]$ also excludes zero. The supremum over the whole grid does not reject the null.

\begin{figure}[htbp]
\centering
\includegraphics[width=\textwidth]{horizon-profile.png}
\caption{Filtered horizon profile after municipality and year means are removed. Filled points and green intervals are the plug-in estimate and Wald interval at $\hat\rho=0.33$. Red intervals are the pointwise $95\%$ sets from $p^{\mathrm{BB}}$. The cross is the replicated AGR coefficient.}\label{fig:horizon}
\end{figure}

Figure 2 shows the dynamic effects, which can be causally interpreted under Proposition \ref{prop:filtered}. The rejection at $h=0$ agrees in sign with \citet{agr2023} and with the plug-in interval. The rejection at $h=1$ further suggests that there are dynamic effects of law enforcement in a given year, associated to fines issued up to two years before. For longer horizons, the estimates are no longer statistically significant.




\section{Conclusion}\label{sec-conclusion}

In this paper, I study inference for instrumented local projections in short panel where the instrument has an autoregressive structure. Persistence in the instrument is a nuisance in two senses: it determines which combination of dynamic causal effects the local projection estimand measures, and it governs the randomization distribution of any test built from the instrument.

I show how to conduct randomization inference that is valid for every value of the persistence parameter without estimating it, by recovering and rerandomizing the innovations of the assignment mechanism at each candidate value and reporting the worst case, and how to make the supremum computable exactly. Under a sharp null on the impulse-response path the test is exact for every persistence, including the unit root. Under a weak null on the heterogeneity-weighted estimand a studentized version is asymptotically valid uniformly over the persistence. The procedure extends to unit effects, stratified and clustered designs.

Monte Carlo simulations illustrate the desirable finite-sample properties of the proposed procedures. An empirical application shows that the law enforcement has dynamic effects on curbing deforestation of the Brazilian Amazon, but the effects fade out over time.

\bibliography{bibliography.bib}