Description Usage Arguments Value Examples
Function for computing pre-treatment weights, optimal weights, post-treatment barycenters, post-treatment confidence intervals.
1 2 3 4 5 6 7 8 9 10 11 |
c_df |
a list of list: each sublist contains observations of every control units at a specific time period.
e.g. |
t_df |
a list of observations. e.g. |
T0 |
an integer specifying the end of pre-treatment period. |
M |
an integer specifying the number of draws from the uniform distribution for approximating the integral. |
solver |
a solver for the optimization problem; see |
ww |
0 or a vector. By default, i.e. 0, arithmetic mean is used for calculating optimal weights. Otherwise, a vector of specific weights is used. |
evgrid |
a vector of gridpoints used to evaluate quantile functions. |
cl |
a float specifying the confidence level. |
num.redraws |
an integer specifying the number of redraws used in the bootstrap approach. |
DSC_main
returns a list containing the following components:
|
a list of weights in each pre-treatment period. |
|
a vector of optimal weights. |
|
a list of post-treatment barycenters. |
|
a list of post-treatment confidence intervals. |
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.