View source: R/synthetic_control.R
| estimate_synthetic_control | R Documentation |
Estimate synthetic control weights by minimizing the pre-treatment mean squared prediction error. Weights are non-negative and sum to one.
estimate_synthetic_control(
task,
method = c("quadprog", "optim"),
covariates = NULL,
verbose = getOption("eventstudy.verbose", TRUE)
)
task |
A |
method |
Optimization method: |
covariates |
Optional character vector of covariate column names in both treated and donor data to include in the matching. |
verbose |
Logical; if FALSE, suppress informational messages. Default
|
The task with results populated.
Other eventstudy-tasks:
IntradayEventStudyTask,
PanelEventStudyTask,
SyntheticControlTask,
estimate_panel_event_study(),
nonparametric_intraday_test(),
plot_panel_event_study(),
plot_synthetic_control(),
prepare_intraday_event_study(),
sc_placebo_test()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.