Description Usage Arguments Value Author(s) References Examples

Calculate a vector of weights relating vector xrow with the rows of xmat, according to the weights in vector carwt. For each row in xmat, the positions of agreement with xrow are found. The weight for that row of xmat is then the sum of the elements of carwt corresponding to the matches.

1 | ```
weight_x(xrow, xmat, carwt)
``` |

`xrow` |
vector used for matching |

`xmat` |
matrix of covariates |

`carwt` |
vector of weight for each match |

Vector of weights relating vector xrow to the rows of xmat

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 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.