compute_did | R Documentation |
Estimate DID and sDID
compute_did(
formula,
dat_panel,
outcome,
treatment,
id_time_use,
id_subj_use,
time_weight,
min_time = 3,
lead,
var_cluster_pre
)
formula |
A formula. |
dat_panel |
A panel data. |
outcome |
Name of the outcome variable. |
treatment |
Name of the treatment variable. |
id_time_use |
A list of time index. |
id_subj_use |
A list of unit index. |
time_weight |
A vector of time weights. |
min_time |
A threshold value of minimum number of units in the treatment. |
lead |
A vector of lead parameters. |
var_cluster_pre |
A variable name used for clustering. |
A list of DID and sDID estimates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.