print.PanelBalance: Print basic information about PanelBalance objects

View source: R/PanelBalance.R

print.PanelBalanceR Documentation

Print basic information about PanelBalance objects

Description

This function prints out covariate balance information for all of the PanelMatch configurations specified within a PanelBalance object. Specifically it prints out the name of the PanelMatch object(s), and covariate balance measures over the specified time period after refinement. If no refinement was applied, then these unrefined results will be shown.

Usage

## S3 method for class 'PanelBalance'
print(x, ...)

Arguments

x

PanelBalance object

...

Not used

Value

Nothing

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"))
print(pb)

PanelMatch documentation built on June 8, 2025, 10:37 a.m.