get_Yi1 | R Documentation |
A function to calculate outcomes for units in the first time period that is available in a panel data setting (this function can also be used to recover covariates, etc. in the first period).
get_Yi1(df, idname, yname, tname, gname)
df |
the data.frame used in the function |
idname |
name of column that holds the unit id |
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.