Description Usage Arguments Value
Format "long" panel data into "wide" matrices to fit IPW
1 2 | format_ipw(outcomes, metadata, outcome_col = NULL, cols = list(unit =
"unit", time = "time", outcome = "outcome", treated = "treated"))
|
outcomes |
Tidy dataframe with the outcomes and meta data |
metadata |
Dataframe of metadata |
outcome_col |
Column name which identifies outcomes, if NULL then only one outcome is assumed |
cols |
Column names corresponding to the units, time variable, outcome, and treated indicator |
List of pre and post period outcomes, and treatment indicator
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.