solve_masc: solving for matching and synthetic control weights

Description Usage Arguments Value References See Also

View source: R/estimator.R


Solves separately for synthetic control weights and matching weights for a given matching estimator, using data up to the treatment period.


solve_masc(donors, treated, treatment, sc_est, tune_pars, nogurobi = FALSE)



A TxN matrix of outcome paths for untreated units, each column being a control unit.


A list containing one element:


an integer identifying the candidate matching (nearest neighbor) estimator.


A Tx1 matrix of outcomes for the treated unit.


An integer. The period T' in which forecasting begins (either the true treatment period or the first period after a cross-validation fold).

#'@param sc_est A function which constructs weights associated with a synthetic control-type estimator. See sc_estimator for input and output if you'd prefer to substitute your own estimator.


A list containing the weights associated with the two estimators. Weights are ordered in the same manner as the columns in donors. The and weights.match named components contain the vector of synthetic control and nearest neighbor weights respectively. The component contains the objective value (pre-period fit) of the synthetic control.


Kellogg, M., M. Mogstad, G. Pouliot, and A. Torgovitsky. Combining Matching and Synthetic Control to Trade off Biases from Extrapolation and Interpolation. Working Paper, 2019.

See Also

Other masc functions: cv_masc(), masc_by_phi(), masc(), sc_estimator()

maxkllgg/masc documentation built on Sept. 1, 2020, 5:35 p.m.