% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cointegration.R
\name{.westerlund_unit_regressions}
\alias{.westerlund_unit_regressions}
\title{Run error-correction regressions per unit}
\usage{
.westerlund_unit_regressions(
  panel,
  y_name,
  x_names,
  lags = 1L,
  leads = 1L,
  show_progress = FALSE
)
}
\arguments{
\item{panel}{Prepared panel data.}

\item{y_name}{Character: dependent variable.}

\item{x_names}{Character: regressor names (levels).}

\item{lags}{Integer: number of \eqn{\Delta y} lags.}

\item{leads}{Integer: number of \eqn{\Delta x} leads (not used in this
simplified implementation).}

\item{show_progress}{Logical.}
}
\value{
A data frame with columns \code{unit}, \code{T_i},
\code{alpha}, \code{alpha_se}, \code{t_alpha}.
}
\description{
Run error-correction regressions per unit
}
\keyword{internal}
