WAICimbal: Weighted Average of Allocation Imbalance for Covariates

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/WAICimbal.R

Description

Evaluate weighted average of the allocation imbalance for all covariates

Usage

1
WAICimbal(alloc, xmat, carwt)

Arguments

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

Value

Weighted average of covariate imbalances

Author(s)

Xiaoshu Zhu [email protected] and Sharon Lohr

References

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.

See Also

MAICimbal

Examples

1
2
3
4
5
alloc <- rbinom(60,1,.5)
xmat <- matrix(rbinom(240,1,.4),ncol=4)
carwt <- c(.1,.3,.2,.4)

WAICimbal(alloc, xmat, carwt) 

SeqAlloc documentation built on May 30, 2017, 6:30 a.m.