View source: R/did-data_prep.R
did_rcs_data | R Documentation |
Prepare data for the DID design with repeated cross-section data
did_rcs_data(
var_outcome,
var_treat,
var_post,
var_covars = NULL,
var_cluster = NULL,
id_time,
data
)
var_outcome |
A variable name of the outcome. |
var_treat |
A variable name of the time-varying treatment. |
var_post |
A name of a variable to indicate if a unit is observed in the post-treatment periods or not. |
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.