| sdid_estimate_cpp | R Documentation |
Given unit weights omega and time weights lambda, computes the SDID estimator as a weighted two-way difference:
sdid_estimate_cpp(Y_pre_co, Y_post_co, Y_pre_tr, Y_post_tr, omega, lambda)
Y_pre_co |
Control pre-treatment outcomes (T_pre x N_co) |
Y_post_co |
Control post-treatment outcomes (T_post x N_co) |
Y_pre_tr |
Treated pre-treatment outcomes (T_pre x 1) |
Y_post_tr |
Treated post-treatment outcomes (T_post x 1) |
omega |
Unit weights (N_co x 1) |
lambda |
Time weights (T_pre x 1) |
tau_sdid = (Y_tr_post_mean - Y_tr_pre_wt) - (Y_co_post_wt - Y_co_pre_wt)
A single numeric value: the SDID treatment-effect estimate
tau_sdid.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.