keep_all_untreated_subset: keep_all_untreated_subset

View source: R/subset_functions.R

keep_all_untreated_subsetR Documentation

keep_all_untreated_subset

Description

A function that takes an original data set and keeps all pre-treatment data for all groups. For group g, it also includes data for the current period.

Also, note that if tp is still a pre-treatment period for group g, then periods after tp will also be dropped for group g. This is a design choice and is useful especially for estimating placebo group-time average treatment effects in pre-treatment periods.

A main use case for this function is to compute ATT(g,t)'s using a global estimation strategy such as imputation in Gardner (2022).

Usage

keep_all_untreated_subset(data, g, tp, ...)

Arguments

data

a data frame

g

group

tp

time period

Value

all data but in correct format for computing ATT(g,t)


bcallaway11/pte documentation built on June 6, 2024, 1:41 p.m.