Learn R Programming

hbal (version 1.2.12)

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

matrix of covariates.

exp.degree

the degree of the polynomial.

treatment

treatment indicator

exclude

list of covariate name pairs or triplets to be excluded.

Author

Yiqing Xu, Eddie Yang