covarExpand: Serial Expansion of Covariates
Description
Internal function called by hbal
to serially expand covariates.
Usage
covarExpand(X, exp.degree = 3, treatment = NULL, exclude = NULL)
Value
A matrix of serially expanded covariates
Arguments
- X
a matrix of covariates.
- exp.degree
the degree of the polynomial.
- treatment
a vector of treatment status
- exclude
a vector of covariate name pairs or triplets to be excluded.
Author
Yiqing Xu, Eddie Yang