Build the regressor matrix for a single unit
.build_unit_X(panel, idx, x_names, csa_colnames, include_constant, unit_trend)A numeric matrix.
Panel data.frame.
Integer indices for this unit.
Character: structural regressor names.
Character: CSA column names (or NULL).
Logical: include intercept?
Logical: include time trend?