get_Yibar_pre_inner | R Documentation |
Calculates a unit's average outcome in pre-treatment periods (or also can be used for a covariate). The unit's group must be specified at this point. This function operates on a data.frame that is already local to a particular unit.
get_Yibar_pre_inner(this_df, yname, tname, gname)
this_df |
a data.frame, for this function it should be specific to a particular unit |
yname |
name of column containing the outcome (or other variable) for which to calculate its outcome in the immediate pre-treatment period |
tname |
name of column that holds the time period |
gname |
name of column containing the unit's group |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.