compute.pte2 | R Documentation |
Function that actually computes panel treatment effects.
The difference relative to compute.pte
is that this function
loops over time periods first (instead of groups) and tries to
estimate model for untreated potential outcomes jointly for all groups.
compute.pte2(ptep, subset_fun, attgt_fun, global_model = FALSE, ...)
ptep |
|
subset_fun |
This is a function that should take in |
attgt_fun |
This is a function that should work in the case where there is a single group and the "right" number of time periods to recover an estimate of the ATT. For example, in the contest of difference in differences, it would need to work for a single group, find the appropriate comparison group (untreated units), find the right time periods (pre- and post-treatment), and then recover an estimate of ATT for that group. It will be called over and over separately by groups and by time periods to compute ATT(g,t)'s. The function needs to work in a very specific way. It should take in the
arguments: If |
... |
extra arguments that can be passed to create the correct subsets
of the data (depending on |
list of attgt results and, sometimes, an influence function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.