Optimization {MultiATSM} | R Documentation |
Peform the minimization of mean(f)
Description
Peform the minimization of mean(f)
Usage
Optimization(
f,
tol,
varargin,
FactorLabels,
Economies,
ModelType,
JLLinputs = NULL,
GVARinputs = NULL
)
Arguments
f |
vector-valued objective function (function) |
tol |
convergence tolerance (scalar). For ML estimation, a reasonable value is tol <- 1e-4 |
varargin |
list containg starting values and constraints: for each input argument K (of f), we need four inputs that look like:
|
FactorLabels |
string-list based which contains the labels of all the variables present in the model |
Economies |
string-vector containing the names of the economies which are part of the economic system |
ModelType |
string-vector containing the label of the model to be estimated |
JLLinputs |
inputs used in the estimation of the JLL-based models; Default is set to NULL |
GVARinputs |
inputs used in the estimation of the GVAR-based models; Default is set to NULL |
Details
If a variable name starts with a '@', it means that that parameter will be analytically concentrated out in the specification of f. In this case, no starting value is needed for this particular parameter (an empty matrix can be provided as a starting value).
Value
(i) out: list of second output produced by f (the first output of f must be the objective value to be minimized).
(ii) x: list containing parameter estimates
References
This function is based on the "LS__opt" function by Le and Singleton (2018).
"A Small Package of Matlab Routines for the Estimation of Some Term Structure Models."
(Euro Area Business Cycle Network Training School - Term Structure Modelling).
Available at: https://cepr.org/40029
Examples
#' # See examples in the vignette file of this package (Section 4).