Learn R Programming

PanelMatch (version 3.1.1)

print.PanelMatch: Print PanelMatch objects.

Description

Print PanelMatch objects.

Usage

# S3 method for PanelMatch
print(x, ..., verbose = FALSE, n = 5, show.all = FALSE)

Arguments

x

a PanelMatch object

...

additional arguments to be passed to print.matched.set

verbose

logical indicating whether or not underlying data should be printed in expanded/raw list form. The verbose form is not recommended unless the data set is small. Default is FALSE

n

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.

Examples

Run this code
dem.sub <- dem[dem[, "wbcode2"] <= 100, ]
dem.sub.panel <- PanelData(dem, 'wbcode2', 'year', 'dem', 'y')
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)
print(PM.results)


Run the code above in your browser using DataLab