setup_cov_pre_test: Setup data for covariate pre-test

View source: R/setup_cov_pre_test.R

setup_cov_pre_testR Documentation

Setup data for covariate pre-test

Description

Sets up the data for conducting covariate pre-test

Usage

setup_cov_pre_test(
  yname,
  gname,
  tname,
  idname,
  data,
  nife = 1,
  anticipation = 0,
  ...
)

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

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.

...

extra arguments

Value

pte_params object


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