summary.PanelBalance function

Summarize covariate balance over time

Summarize covariate balance over time

## S3 method for class 'PanelBalance' summary( object, qoi = NULL, include.unrefined = TRUE, unrefined.only = FALSE, ... )

Arguments

  • object: PanelBalance object
  • qoi: Character. Valid values include "att", "art", or "atc". Specifying which QOI information to extract and summarize.
  • include.unrefined: logical. Indicates whether or not unrefined balance results should be included in the summary.
  • unrefined.only: logical. Indicates whether or not only unrefined balance results should be included in the summary.
  • ...: Not used

Returns

returns a list of matrices with covariate balance results calculated. Each element in the list corresponds to a PanelMatch configuration given to get_covariate_balance() and are returned in order. Note that if a configuration has qoi = "ate", the corresponding element in the returned list will also be a list, containing balance results corresponding to the ATT and ATC. Otherwise, each element in the returned list will be a matrix. Each matrix entry corresponds to balance results for a particular covariate in a particular period. When unrefined balance results are included, users will see additional columns with "_unrefined" appended to covariate names. These correspond to the unrefined balance results for a particular covariate-period.

Examples

dem$rdata <- runif(runif(nrow(dem))) dem.panel <- PanelData(dem, "wbcode2", "year", "dem", "y") pm.obj <- PanelMatch(lead = 0:3, lag = 4, refinement.method = "mahalanobis", panel.data = dem.panel, match.missing = TRUE, covs.formula = ~ tradewb + rdata + I(lag(tradewb, 1:4)) + I(lag(y, 1:4)), size.match = 5, qoi = "att") pb <- get_covariate_balance(pm.obj, include.unrefined = TRUE, panel.data = dem.panel, covariates = c("tradewb", "rdata")) summary(pb)
  • Maintainer: In Song Kim
  • License: GPL (>= 3)
  • Last published: 2025-03-03

Useful links