WAICimbal {SeqAlloc} | R Documentation |
Evaluate weighted average of the allocation imbalance for all covariates
WAICimbal(alloc, xmat, carwt)
alloc |
vector of allocations to treatment (1) or control (0) |
xmat |
matrix describing covariates for each prospective observation |
carwt |
vector of weights to be accorded to respective covariates |
Weighted average of covariate imbalances
Xiaoshu Zhu xiaoshuzhu@westat.com and Sharon Lohr
Lohr, S. and X. Zhu (2015). Randomized Sequential Individual Assignment in Social Experiments: Evaluating the Design Options Prospectively. Sociological Methods and Research. [Advance online publication: December 27, 2015] doi: 10.1177/0049124115621332.
alloc <- rbinom(60,1,.5)
xmat <- matrix(rbinom(240,1,.4),ncol=4)
carwt <- c(.1,.3,.2,.4)
WAICimbal(alloc, xmat, carwt)