covid_attgt | R Documentation |
Takes a "local" data.frame and computes an estimate of a group time average treatment effect and a corresponding influence function.
The code relies on this.data
having certain variables defined.
In particular, there should be an id
column (individual identifier),
G
(group identifier), period
(time period), name
(equal to "pre" for pre-treatment periods and equal to "post" for post
treatment periods), Y
(outcome).
In our case, we call pte::two_by_two_subset
which sets up the
data to have this format before the call to covid_attgt
.
covid_attgt(gt_data, xformla, d_outcome = FALSE, d_covs_formula = ~-1, ...)
gt_data |
data that is "local" to a particular group-time average treatment effect |
xformla |
one-sided formula for covariates used in the propensity score and outcome regression models |
... |
extra function arguments; not used here |
attgt_if
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.