View source: R/cov_pre_test_subset.R
cov_pre_test_subset | R Documentation |
A function for obtaining the correct subset in a staggered treatment adoption setup with panel data for conducting a pre-test that the effect of covariates does not change over time.
cov_pre_test_subset(data, g, tp, nife, anticipation = 0, ...)
data |
the full dataset |
g |
the current group |
tp |
the current time period |
nife |
the number of interactive fixed effects |
anticipation |
number of periods before participating treatment that treatment can have an effect on outcomes |
... |
extra arguments to get the subset correct |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.