Description Usage Arguments Details Value Author(s) References

View source: R/matchMulti-internal.R

Computes robust Mahalanobis distance between treated and control units.

1 | ```
smahal(z, X)
``` |

`z` |
vector of treatment indicators (1 for treated, 0 for controls). |

`X` |
matrix of numeric variables to be used for computing the Mahalanobis distance. Row count must match length of |

For an explanation of the robust Mahalanobis distance, see section 8.3 of the first reference. This function was written by Paul Rosenbaum and distributed in the supplemental material to the second reference.

a matrix of robust Mahalanobis distances, with a row for each treated unit and a column for each control.

Paul R. Rosenbaum.

Rosenbaum, Paul R. (2010). *Design of Observational Studies*.
Springer-Verlag.

Rosenbaum, Paul R. (2012) "Optimal Matching of an Optimally Chosen Subset in Observational Studies." Journal of Computational and Graphical Statistics, 21.1, 57-71.

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.