lt_subset: lt_subset

View source: R/lt_subset.R

lt_subsetR Documentation

lt_subset

Description

A function for obtaining the correct subset in a staggered treatment adoption setup with panel data using a linear trends model for untreated potential outcomes.

Usage

lt_subset(data, g, tp, anticipation = 0, ...)

Arguments

data

the full dataset

g

the current group

tp

the current time period

anticipation

number of periods before participating treatment that treatment can have an effect on outcomes

...

extra arguments to get the subset correct

Value

list that contains correct subset of data, n1 number of observations in this subset, and disidx a vector of the correct ids for this subset.


bcallaway11/ife documentation built on Sept. 15, 2023, 12:33 a.m.