% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{sdid_estimate_cpp}
\alias{sdid_estimate_cpp}
\title{Calculate SDID Estimate (tau_sdid)}
\usage{
sdid_estimate_cpp(Y_pre_co, Y_post_co, Y_pre_tr, Y_post_tr, omega, lambda)
}
\arguments{
\item{Y_pre_co}{Control pre-treatment outcomes (T_pre x N_co)}

\item{Y_post_co}{Control post-treatment outcomes (T_post x N_co)}

\item{Y_pre_tr}{Treated pre-treatment outcomes (T_pre x 1)}

\item{Y_post_tr}{Treated post-treatment outcomes (T_post x 1)}

\item{omega}{Unit weights (N_co x 1)}

\item{lambda}{Time weights (T_pre x 1)}
}
\value{
A single numeric value: the SDID treatment-effect estimate
\code{tau_sdid}.
}
\description{
Given unit weights omega and time weights lambda, computes the SDID
estimator as a weighted two-way difference:
}
\details{
tau_sdid = (Y_tr_post_mean - Y_tr_pre_wt) - (Y_co_post_wt - Y_co_pre_wt)
}
