summary.matched.set {PanelMatch} | R Documentation |
Summarize information about a matched.set
object and the matched sets contained within them.
Description
A method for viewing summary data about the sizes of matched sets and metadata about how they were created. This method
accepts all standard summary
arguments.
Usage
## S3 method for class 'matched.set'
summary(object, ..., verbose = TRUE)
Arguments
object |
a |
... |
Optional additional arguments to be passed to the |
verbose |
Logical value specifying whether or not a longer, more verbose summary should be calculated and returned. Default is
|
Value
list object with either 5 or 1 element(s), depending on whether or not verbose
is set to TRUE
or not.
overview |
A |
set.size.summary |
a |
number.of.treated.units |
The number of unit, time pairs that are considered to be "treated" units |
num.units.empty.set |
The number of units treated at a particular time that were not able to be matched to any control units |
lag |
The size of the lag window used for matching on treatment history. This affects which treated and control units are matched. |
Examples
dem.sub <- dem[dem[, "wbcode2"] <= 100, ]
# create subset of data for simplicity
PM.results <- PanelMatch(lag = 4, time.id = "year", unit.id = "wbcode2",
treatment = "dem", refinement.method = "ps.match",
data = dem.sub, match.missing = TRUE,
covs.formula = ~ I(lag(tradewb, 1:4)) + I(lag(y, 1:4)),
size.match = 5, qoi = "att",
outcome.var = "y", lead = 0:4, forbid.treatment.reversal = FALSE)
summary(PM.results$att)