sc_solve | R Documentation |

Solve for synthetic control weights in CVXR

```
sc_solve(y_t, y_c, 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 |

`solv` |
what solver to use. default is mosek |

vector of weights

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.