Description Usage Arguments Value See Also Examples
Computing Synthetic Control Estimator when multiple units are missing. The underlying algorithm is Mirror Descent with Entropy Regularizer. This algorithm is also known as exponentiated gradient descent. It is worth noting that this estimator was proposed by Abadie et. al and the reason of new implementation here is to compare methods on some datasets.
1 | adh_mp_rows(M, mask, niter = 10000, rel_tol = 1e-08)
|
M |
Matrix of observed entries. The input should be N (number of units) by T (number of time periods). |
mask |
Binary mask with the same shape as M containing observed entries. |
niter |
Optional parameter on the number of iterations taken in the algorithm. The default value is 10000 and if the number of treated units are large for speed consideration will be reduced to 200. |
rel_tol |
Optional parameter on the stopping rule. Once the relative improve in objective value drops below rel_tol, execution is halted. Default value is 1e-8. |
The matrix with all missing entries filled.
The R package called synth
, written by Alberto Abadie, Alexis Diamond, and Jens Hainmueller.
1 | adh_mp_rows(matrix(c(1,2,3,4),2,2), matrix(c(1,1,1,0),2,2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.