covarExpand {hbal} | R Documentation |
Internal function called by hbal
to serially expand covariates.
covarExpand(X, exp.degree = 3, treatment = NULL, exclude = NULL)
X |
matrix of covariates. |
exp.degree |
the degree of the polynomial. |
treatment |
treatment indicator |
exclude |
list of covariate name pairs or triplets to be excluded. |
A matrix of serially expanded covariates
Yiqing Xu, Eddie Yang