extract.PanelMatch function

Extract matched.set objects from PanelMatch results

Extract matched.set objects from PanelMatch results

## S3 method for class 'PanelMatch' extract(pm.object, qoi = NULL)

Arguments

  • pm.object: PanelMatch obect
  • qoi: character, specifying the qoi. Valid inputs include "att", "atc", "art", and NULL. If NULL, function extracts att, art, or atc results if possible. Otherwise, throws an error if ate is specified.

Returns

a matched.set object

Examples

dem.sub <- dem[dem[, "wbcode2"] <= 100, ] dem.sub.panel <- PanelData(dem.sub, "wbcode2", "year", "dem", "y") # create subset of data for simplicity PM.results <- PanelMatch(panel.data = dem.sub.panel, lag = 4, refinement.method = "mahalanobis", match.missing = TRUE, covs.formula = ~ I(lag(tradewb, 1:4)) + I(lag(y, 1:4)), size.match = 5, qoi = "att", lead = 0:4, forbid.treatment.reversal = FALSE) extract(PM.results, qoi = "att") extract(PM.results) # valid since att is specified
  • Maintainer: In Song Kim
  • License: GPL (>= 3)
  • Last published: 2025-03-03

Useful links