% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{scm_placebo_cpp}
\alias{scm_placebo_cpp}
\title{Fast Leave-One-Out Placebo Test for SCM (Abadie et al. 2010)}
\usage{
scm_placebo_cpp(Y_pre, Y_post, max_iter = 100L, tol = 1e-04)
}
\arguments{
\item{Y_pre}{Control pre-treatment outcomes (T_pre x N_co)}

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

\item{max_iter}{Outer coordinate-descent iterations (default 100)}

\item{tol}{Convergence tolerance for V updates (default 1e-4)}
}
\value{
A list with:
\itemize{
\item \code{mspe_pre}:  N_co-vector of pre-treatment MSPE per placebo unit
\item \code{mspe_post}: N_co-vector of post-treatment MSPE per placebo unit
\item \code{effects}:   N_co-vector of mean post-period gap per placebo unit
}
}
\description{
For each control unit, treats it as pseudo-treated and fits SCM weights
from the remaining N_co-1 donors. Returns MSPE components for constructing
MSPE-ratio permutation p-values in R.
}
