| mlr.smd | R Documentation |
Calculate standardized mean difference for each column of a matrix, given a binary treatment indicator vector.
mlr.smd(tr, X)
tr |
Binary treatment indicator vector; 1 means treatment, 0 means control. |
X |
Matrix of covariates; each column is a covariate whose standardized mean difference we want to calculate. |
A vector of length ncol(X), containing standardized mean differences for each column of X, given treatment variable tr.
Alireza S. Mahani, Mansour T.A. Sharabiani
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.