cov_pre_test: cov_pre_test

View source: R/cov_pre_test.R

cov_pre_testR Documentation

cov_pre_test

Description

Pre-test for time invariant effects of covariates in an interactive fixed effects model for untreated potential outcomes

Usage

cov_pre_test(
  yname,
  gname,
  tname,
  idname,
  data,
  nife,
  xformla = ~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

xformla

Formula for which covariates to include in the model. Default is ~1.

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.

Value

pte::pte_results object


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