Loss function for the nested optimization of W and V weights used for constructing synthetic control groups according to the methods outlined in Abadie and Gardeazabal (2003) and Abadie, Diamond, Hainmueller (2010, 2011, 2014) (see references). This function is called by synth
internally, and should not be called manually by a normal user.
fn.V(variables.v = stop("variables.v missing"),
X0.scaled = stop("X0.scaled missing"),
X1.scaled = stop("X1.scaled missing"),
Z0 = stop("Z0 missing"),
Z1 = stop("Z1 missing"),
margin.ipop = 5e-04,
sigf.ipop = 5,
bound.ipop = 10,
quadopt = "ipop")
A scalar that contains the function value.
1 by k a vector of v weights.
matrix of controls' predictor data. nrows = number of predictors and (possibly) special predictors. ncols = number of control units.
matrix of treated predictor data. nrows = number of predictors and (possibly) special predictors. ncols = one.
matrix of controls' outcome data for the pre-treatment periods over which MSPE is to be minimized. nrows = number of pre-treatment periods. ncols = number of control units.
matrix of treated outcome data for the pre-treatment periods over which MSPE is to be minimized. nrows = number of pre-treatment periods. ncols = one.
setting for ipop optimization routine: how close we get to the constrains (see ipop
for details)
setting for ipop optimization routine: Precision (default: 7 significant figures (see ipop
for details)
setting for ipop optimization routine: Clipping bound for the variables (see ipop
for details)
string vector that specifies the routine for quadratic optimization over w weights.
possible values are "ipop" (see ipop
for details)
Jens Hainmueller and Alexis Diamond
Abadie, A., Diamond, A., Hainmueller, J. (2014). Comparative Politics and the Synthetic Control Method. American Journal of Political Science Forthcoming 2014.
Synthetic : An R Package for Synthetic Control Methods in Comparative Case Studies. Journal of Statistical Software 42 (13) 1--17.
Abadie, A., Diamond, A., Hainmueller, J. (2011). Synth: An R Package for Synthetic Control Methods in Comparative Case Studies. Journal of Statistical Software 42 (13) 1--17.
Abadie A, Diamond A, Hainmueller J (2010). Synthetic Control Methods for Comparative Case Studies: Estimating the Effect of California's Tobacco Control Program. Journal of the American Statistical Association 105 (490) 493--505.
Abadie, A. and Gardeazabal, J. (2003) Economic Costs of Conflict: A Case Study of the Basque Country American Economic Review 93 (1) 113--132.
synth
, dataprep
, gaps.plot
, path.plot
,
synth.tab