GetSMD {debiasedTrialEmulation} | R Documentation |
Compute Standardized Mean Differences (SMD)
Description
Computes the standardized mean differences for covariates before and after adjustment.
Usage
GetSMD(data, treat, weights = NULL, std = TRUE)
Arguments
data |
A data frame containing covariates. |
treat |
A binary variable indicating treatment assignment. |
weights |
Optional weight vector. |
std |
Logical; whether to standardize. |
Value
A data frame with covariate names and their standardized mean differences.
[Package debiasedTrialEmulation version 0.1.0 Index]