% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sdid.R
\name{sdid_inference}
\alias{sdid_inference}
\title{Inference for Synthetic Difference-in-Differences}
\usage{
sdid_inference(
  fit,
  method = c("placebo", "bootstrap", "jackknife", "jackknife_global"),
  n_boot = 200L,
  level = 0.95,
  alternative = c("two.sided", "greater", "less"),
  seed = NULL
)
}
\arguments{
\item{fit}{A \code{coresynth} object with \code{method = "sdid"} (sharp adoption only).}

\item{method}{Inference method: \code{"placebo"} (permutation), \code{"bootstrap"}, or
\code{"jackknife"}.}

\item{n_boot}{Number of bootstrap replications (only for \code{method = "bootstrap"}).}

\item{level}{Confidence level for the interval (only for \code{method = "bootstrap"}
or \code{"jackknife"}).}

\item{alternative}{Direction of the alternative hypothesis: \code{"two.sided"},
\code{"greater"}, or \code{"less"}.}

\item{seed}{Integer seed for reproducibility (only for \code{method = "bootstrap"}).}
}
\value{
A list with:
\itemize{
\item \code{estimate}: The SDID point estimate.
\item \code{se}: Standard error (bootstrap / jackknife only).
\item \code{p_value}: Permutation or normal-approximation p-value.
\item \code{ci_lower}, \code{ci_upper}: Confidence interval bounds (bootstrap / jackknife).
\item \code{method}: The inference method used.
\item \code{n_controls}: Number of control units.
\item \code{alternative}: The alternative hypothesis direction.
\item \code{placebo_effects}: Named vector of LOO placebo effects (placebo only).
\item \code{boot_ests}: Bootstrap estimate distribution (bootstrap only).
}
}
\description{
Computes standard errors and p-values for a SDID estimate using one of
three methods: permutation placebo test (Algorithm 4), cluster bootstrap
(Algorithm 2), or leave-one-out jackknife (Algorithm 3), following
Clarke et al. (2023).
}
