Skip to contents

Estimate synthetic control weights by minimizing the pre-treatment mean squared prediction error. Weights are non-negative and sum to one.

Usage

estimate_synthetic_control(
  task,
  method = c("quadprog", "optim"),
  covariates = NULL,
  verbose = getOption("eventstudy.verbose", TRUE)
)

Arguments

task

A SyntheticControlTask.

method

Optimization method: "quadprog" (default, requires quadprog) or "optim" (uses stats::optim L-BFGS-B).

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 getOption("eventstudy.verbose", TRUE).

Value

The task with results populated.