smahal | R Documentation |
This function computes the rank-based Mahalanobis distance matrix
between each pair of observations in the data set. Called by
matches
(and ultimately opt_nearfar
)
function to set up a distance matrix used to create pair matches.
smahal(X)
X |
A matrix of observed confounders with n rows (observations) and p columns (variables) |
Returns the rank-based Mahalanobis distance matrix between every pair of observations
smahal(mtcars[1:4, 2:3])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.