Given a panel and the list of base regressor names, attach columns for
the first difference of each regressor and its lags 1, ..., p_x,
and also the first difference of the dependent variable (used as the
CS-DL LHS). The returned list contains the augmented panel plus the
vectors of column names that should be used on the LHS and RHS of the
CS-DL regression.
.csdl_augment(panel, y_name, x_names, p_x = 3L)A list with
Augmented panel with new columns.
Name of the first-difference dependent variable.
Character vector: level x + lagged \(\Delta x\) terms for the CS-DL regression.
Character vector: column names whose coefficients are the long-run effects (one per base x).
A panel data.frame with unit_var/time_var
attributes.
Character scalar: dependent variable name.
Character vector: base regressor names (levels).
Integer: number of \(\Delta x\) lags to include (default 3).