staggered_ife_setup_data2: staggered_ife_setup_data2

View source: R/staggered_ife_setup_data.R

staggered_ife_setup_data2R Documentation

staggered_ife_setup_data2

Description

This function sets up the periods/groups for using staggered_ife_attgt2 (the main approach proposed in Callaway and Tsyawo (2023)).

Usage

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,
  ...
)

Arguments

yname

Name of outcome in data

gname

Name of group in data

tname

Name of time period in data

idname

Name of id in data

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 anticipation = 1.

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

Value

pte_params object


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