Defines and fits models given the input parameters
helper_model_fit(FUNmodel, FUNfit, tsl, comb, poss, method, type, q, modelName)
A nested list with the models and fitted objects.
The model fitting function.
A list of time series objects, see details.
A nested list with one model specification per list entry.
A list with the characteristics of possible models (see autoGapProd)
The estimation method. Options are maximum likelihood estimation "MLE"
and bayesian estimation "bayesian"
. If method = c("MLE", "bayesian")
the
NAWRU is fitted by MLE and the TFP trend by Bayesian methods. The default is
method = "MLE"
.
The variance restriction type. Possible options are "basic"
,
"hp"
, see initializeRestr
. The default is type = "hp"
.
Quantile for the Inverse Gamma distribution (only used if type = "hp"
),
see initializeRestr
. The default is q = 0.01
.
Name of the model, i.e., NAWRU or TFP.