Skip to contents

Reports group / period sample sizes, outcome distributions, and baseline covariate balance (standardised mean differences).

Usage

morie_did_diagnostics(
  data,
  outcome,
  treatment,
  post,
  covariates = NULL,
  cluster = NULL
)

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.

Value

A list with sample_sizes, outcome_stats, covariate_balance.

Details

For richer covariate-balance reporting (variance ratios, KS statistics, love plots) prefer cobalt::bal.tab / cobalt::love.plot.