View source: R/staggered_ife_setup_data.R
staggered_ife_setup_data2 | R Documentation |
This function sets up the periods/groups for using
staggered_ife_attgt2
(the main approach proposed in Callaway and
Tsyawo (2023)).
staggered_ife_setup_data2(
yname,
gname,
tname,
idname,
data,
required_pre_periods = 1,
nife = 1,
anticipation = 0,
cband = TRUE,
alp = 0.05,
boot_type = boot_type,
biters = 100,
cl = 1,
...
)
yname |
Name of outcome in |
gname |
Name of group in |
tname |
Name of time period in |
idname |
Name of id in |
data |
balanced panel data |
required_pre_periods |
the number of pre-treatment time periods that are needed |
nife |
the number of interactive fixed effects to include in the model |
anticipation |
Number of periods that treatment is anticipated. Default
is 0. This is in “periods”; e.g., code will work in time periods are
equally spaced but 2 years apart. In this case, to allow for treatment
anticipation of 2 year (<=> 1 period), set |
cband |
whether to compute a uniform (instead of pointwise) confidence band |
alp |
significance level; default is 0.05 |
boot_type |
type of bootstrap |
biters |
number of bootstrap iterations; default is 100 |
cl |
number of clusters to be used when bootstrapping; default is 1 |
... |
extra arguments |
pte_params
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.