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