% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/est_csardl.R
\name{.csardl_classify_terms}
\alias{.csardl_classify_terms}
\title{Classify ARDL regressor terms}
\usage{
.csardl_classify_terms(y_name, x_names)
}
\arguments{
\item{y_name}{Character: dependent variable name.}

\item{x_names}{Character vector: regressor names from the parsed formula.}
}
\value{
A list with
\describe{
\item{y_lag_terms}{Character vector of y-lag term names.}
\item{y_lag_orders}{Integer vector of the lag orders matching
\code{y_lag_terms}.}
\item{x_groups}{Named list: each element is a character vector of
terms (level + lags) belonging to a single base regressor.}
\item{x_group_lags}{Named list: each element is an integer vector of
lag orders matching \code{x_groups}.}
}
}
\description{
Given the dependent variable name, the list of regressor names, and the
panel, classify each regressor term into:
\itemize{
\item y-lag (e.g. \code{L(y,1)})
\item contemporaneous or lagged x (grouped by base variable name)
}
}
\keyword{internal}
