# NOT RUN {
# }
# NOT RUN {
data(Dodgeram)
## An example strata structure
matches = as.matrix(sample(rownames(Dodgeram), 500), ncol = 5)
vars = c("AGE", "SEX.2", "IMPACT3.3", "DR_DRINK")
details = c('std_diff', 'mean', 'function(x) diff(range(x))',
'function(x) quantile(x, probs = .9)')
names(details) <- c('std_diff', 'mean', 'range', '90perc')
covbalance(.data=Dodgeram, grouplabel=c("NOSAB", "optSAB", "WITHSABS"),
matches = matches, vars = vars, details)
# }
Run the code above in your browser using DataLab