| en_sc_solve | R Documentation | 
Solve for Imbens-Doudchenko elastic net synthetic control weights in CVXR
en_sc_solve(y_t, y_c, lambdas = NULL, alpha = 0.5, t = 10, solv = "MOSEK")
| y_t | t_0 X 1 matrix of pre-treatment outcomes for treatment units | 
| y_c | t_0 X n_0 matrix of pre-treatment outcomes for donor units | 
| lambdas | vector of penalty values | 
| alpha | scalar mixing value between L1 and L2 regularisation | 
| t | number of lambdas to try (when range not manually specified) | 
| solv | what solver to use. default is mosek | 
vector of weights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.