Learn R Programming

PanelMatch (version 3.1.1)

summary.PanelData: Summarize information about variable names, and unit, time, and treatment data in a PanelData object

Description

Summarize information about variable names, and unit, time, and treatment data in a PanelData object

Usage

# S3 method for PanelData
summary(object, ...)

Value

Returns a data.frame object, with columns "quantity" and "value." Within the data frame the following information is returned: The name of the unit id variable, the name of the time id variable, the name of the treatment variable, the name of the outcome variable, the number of unique units found in the data, the number of unique time periods found in the data and the percentage of treated periods that are missing treatment data.

Arguments

object

PanelData object

...

Not used

Examples

Run this code
d <- PanelData(dem, "wbcode2", "year", "dem", "y")
summary(d)

Run the code above in your browser using DataLab