Evaluate imbalance in the covariates from the allocation by finding R-squared for a centered regression through the origin.

1 | ```
covimbal(y, xmatc)
``` |

`y` |
vector of 0's and 1's representing allocation |

`xmatc` |
centered X matrix |

Value of R-squared from centered regression

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.

1 2 3 4 5 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.