View source: R/utility_functions.R
GetSMD | R Documentation |
Computes the standardized mean differences for covariates before and after adjustment.
GetSMD(data, treat, weights = NULL, std = TRUE)
data |
A data frame containing covariates. |
treat |
A binary variable indicating treatment assignment. |
weights |
Optional weight vector. |
std |
Logical; whether to standardize. |
A data frame with covariate names and their standardized mean differences.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.