| scm_inner_weights_cpp | R Documentation |
Solves the inner-loop QP for SCM: given a fixed diagonal metric matrix V, finds donor weights W on the simplex minimising the V-weighted covariate loss. The returned weights are a KKT-verified exact optimum whenever the active-set solver converges, with accelerated projected gradient as a fallback.
scm_inner_weights_cpp(X0, X1, V_diag, wolfe = FALSE)
X0 |
Covariate matrix for control units (k x N_co) |
X1 |
Covariate vector for the treated unit (k x 1) |
V_diag |
Diagonal of the metric matrix V (k x 1, non-negative, need not sum to 1) |
wolfe |
If |
Donor weight vector W (N_co x 1) on the unit simplex
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.