improveSynth | R Documentation |
improveSynth
checks the results of synth
for feasibility and optimality and tries to find a better solution.
improveSynth(
synth.out,
dataprep.out,
lb = 1e-08,
tol = 1e-05,
verbose = TRUE,
seed = 1,
...
)
synth.out |
A result of |
dataprep.out |
The input of function |
lb |
A numerical scalar (default: |
tol |
A numerical scalar (default: |
verbose |
A logical scalar. Should the ouput be verbose (defaults to
|
seed |
A numerical vector or |
... |
Further arguments to |
Performing SCM means solving a nested optimization problem. Depending on the validity of the results of the inner optimization, SCM may produce
invalid or infeasible results, if the vector w
of donor
weights reported as the result of the inner optimization
is in fact not optimal, ie. produces too large loss.w
,
suboptimal results, if the vector v
of predictor weights
reported as the result of the outer optimization is in fact not
optimal (which may be caused by shortcomings of the inner optimization).
improveSynth
first checks synth.out
for feasibility and
then tries to find a feasible and optimal solution by applying the
optimization methods of package MSCMT
to dataprep.out
(with default settings, more flexibility will probably be added in a
future release).
An updated version of synth.out
, where solution.v
,
solution.w
, loss.v
, and loss.w
are replaced by the
optimum obtained by package 'MSCMT'
and all other components
of synth.out
are removed.
## Not run:
## example has been removed because package 'Synth' has been archived
## See vignette 'Checking and Improving Results of package Synth'
## for an example working with a cached copy
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.