Reports group / period sample sizes, outcome distributions, and baseline covariate balance (standardised mean differences).
Arguments
- data
A data frame containing the outcome, treatment, post and any covariate columns.
- outcome
Name of the outcome column.
- treatment
Name of the binary (0/1) treatment-group column.
- post
Name of the binary (0/1) post-period column.
- covariates
Optional character vector of covariate column names.
- cluster
Optional cluster ID column for CR1 standard errors.
Details
For richer covariate-balance reporting (variance ratios, KS
statistics, love plots) prefer cobalt::bal.tab /
cobalt::love.plot.