print.matched.set {PanelMatch} | R Documentation |
Print matched.set objects.
Description
Print matched.set objects.
Usage
## S3 method for class 'matched.set'
print(x, ..., verbose = FALSE, n = 5, show.all = FALSE)
Arguments
x |
a |
... |
Not used. additional arguments to be passed to |
verbose |
logical indicating whether or not output should be printed in expanded/raw list form. The verbose form is not recommended unless the data set is small. Default is FALSE, which prints an overview of matched set sizes. |
n |
Integer. Integer. Number of matched sets to display information about as a preview. Default is 5. |
show.all |
Logical. By default ('show.all = FALSE'), the print method only shows a small preview of the sizes of matched sets. When set to TRUE, a full summary description of matched set sizes is shown. |
Value
Returns nothing, but prints information about matched sets: treated observation IDs, the time of treatment, and the size of matched sets.
Examples
dem.sub <- dem[dem[, "wbcode2"] <= 100, ]
# create subset of data for simplicity
dem.sub.panel <- PanelData(dem.sub, "wbcode2", "year", "dem", "y")
PM.results <- PanelMatch(panel.data = dem.sub.panel, lag = 4,
refinement.method = "ps.match",
match.missing = TRUE,
covs.formula = ~ tradewb,
size.match = 5, qoi = "att",
lead = 0:4,
forbid.treatment.reversal = FALSE)
print(extract(PM.results, qoi = "att"))
[Package PanelMatch version 3.1.1 Index]