plot.PanelEstimate: Plot point estimates and standard errors from a PanelEstimate...

Description Usage Arguments Examples

View source: R/PanelEstimateObject.R

Description

The plot.PanelEstimate method takes an object returned by the PanelEstimate function and plots the calculated point estimates and standard errors over the specified lead time period. The only mandatory argument is an object of the PanelEstimate class.

Usage

1
2
3
4
5
6
7
8
9
## S3 method for class 'PanelEstimate'
plot(
  x,
  ylab = "Estimated Effect of Treatment",
  xlab = "Time",
  main = "Estimated Effects of Treatment Over Time",
  ylim = NULL,
  ...
)

Arguments

x

a PanelEstimate object

ylab

default is "Estimated Effect of Treatment. This is the same argument as the standard argument for plot

xlab

default is "Time". This is the same argument as the standard argument for plot

main

default is "Estimated Effects of Treatment Over Time". This is the same argument as the standard argument for plot

ylim

default is NULL. This is the same argument as the standard argument for plot

...

Additional optional arguments to be passed to plot.

Examples

1
2
3
4
5
6
7
8
PM.results <- PanelMatch(lag = 4, time.id = "year", unit.id = "wbcode2", 
                         treatment = "dem", refinement.method = "mahalanobis", 
                         data = dem, 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)
PE.results <- PanelEstimate(sets = PM.results, data = dem)
plot(PE.results)

PanelMatch documentation built on Sept. 5, 2021, 5:48 p.m.