Learn R Programming

PanelMatch (version 3.0.0)

print.matched.set: Print matched.set objects.

Description

Print matched.set objects.

Usage

# S3 method for matched.set
print(x, ..., verbose = FALSE)

Arguments

x

a matched.set object

...

Not used. additional arguments to be passed to print

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.

Examples

Run this code
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"))



Run the code above in your browser using DataLab