get_set_treatment_effects: get_set_treatment_effects

View source: R/get_set_treatment_effects.R

get_set_treatment_effectsR Documentation

get_set_treatment_effects

Description

Calculates the treatment effect size at the matched set level

Usage

get_set_treatment_effects(pm.obj, data, lead)

Arguments

pm.obj

an object of class PanelMatch

data

data.frame with the time series cross sectional data used for matching, refinement, and estimation

lead

integer (or integer vector) indicating the time period(s) in the future for which the treatment effect size will be calculated. Calculations will be made for the period t + lead, where t is the time of treatment. If more than one lead value is provided, then calculations will be performed for each value.

Details

Calculate the size of treatment effects for each matched set.

Value

a list equal in length to the number of lead periods specified to the lead argument. Each element in the list is a vector of the matched set level effects.

Examples

dem.sub <- dem[dem[, "wbcode2"] <= 100, ]
# create subset of data for simplicity
PM.results <- PanelMatch(lag = 4, time.id = "year", unit.id = "wbcode2",
                         treatment = "dem", refinement.method = "ps.match",
                         data = dem.sub, match.missing = TRUE,
                         covs.formula = ~ I(lag(tradewb, 1:4)),
                         size.match = 5, qoi = "att",
                         outcome.var = "y", lead = 0:4, forbid.treatment.reversal = FALSE,
                         placebo.test = FALSE)
set.effects <- get_set_treatment_effects(pm.obj = PM.results, data = dem.sub, lead = 0)



PanelMatch documentation built on June 22, 2024, 10:32 a.m.