View source: R/did-data_prep.R
did_panel_data | R Documentation |
Prepare data for the DID design with panel data
did_panel_data(
var_outcome,
var_treat,
var_covars,
var_cluster,
id_unit,
id_time,
data
)
var_outcome |
A variable name of the outcome. |
var_treat |
A variable name of the time-varying treatment. |
var_covars |
A vector of variables names used as covariates.
This should be left as |
id_time |
A variable name of the time index. |
data |
A data frame. |
A data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.