View source: R/argumentChecks.R
in_paramspace | R Documentation |
in_paramspace
checks whether the parameter vector is in the parameter
space.
in_paramspace(
p,
M,
d,
params,
weight_function = c("relative_dens", "logistic", "mlogit", "exponential", "threshold",
"exogenous"),
weightfun_pars = NULL,
cond_dist = c("Gaussian", "Student", "ind_Student", "ind_skewed_t"),
identification = c("reduced_form", "recursive", "heteroskedasticity",
"non-Gaussianity"),
B_constraints = NULL,
other_constraints = NULL,
all_boldA,
all_Omegas,
weightpars,
distpars,
transition_weights,
allow_unstab = FALSE,
stab_tol = 0.001,
posdef_tol = 1e-08,
distpar_tol = 1e-08,
weightpar_tol = 1e-08
)
p |
a positive integer specifying the autoregressive order |
M |
a positive integer specifying the number of regimes |
d |
the number of time series in the system, i.e., the dimension |
params |
a real valued vector specifying the parameter values.
Should have the form
For models with...
Above, |
weight_function |
What type of transition weights
See the vignette for more details about the weight functions. |
weightfun_pars |
|
cond_dist |
specifies the conditional distribution of the model as |
identification |
is it reduced form model or an identified structural model; if the latter, how is it identified (see the vignette or the references for details)?
|
B_constraints |
a |
other_constraints |
A list containing internally used additional type of constraints (see the options below).
|
all_boldA |
3D array containing the |
all_Omegas |
A 3D array containing the covariance matrix parameters obtain from
|
weightpars |
numerical vector containing the transition weight parameters, obtained from |
distpars |
A numeric vector containing the distribution parameters...
|
transition_weights |
(optional; only for models with |
allow_unstab |
If |
stab_tol |
numerical tolerance for stability of condition of the regimes: if the "bold A" matrix of any regime
has eigenvalues larger that |
posdef_tol |
numerical tolerance for positive definiteness of the error term covariance matrices: if the error term covariance matrix of any regime has eigenvalues smaller than this, the parameter is considered to be outside the parameter space. Note that if the tolerance is too small, numerical evaluation of the log-likelihood might fail and cause error. |
distpar_tol |
the parameter vector is considered to be outside the parameter space if the degrees of
freedom parameters is not larger than |
weightpar_tol |
numerical tolerance for weight parameters being in the parameter space. Values closer to to the border of the parameter space than this are considered to be "outside" the parameter space. |
The parameter vector in the argument params
should be unconstrained and reduced form.
Returns TRUE
if the given parameter values are in the parameter space and FALSE
otherwise.
This function does NOT consider identification conditions!
Kheifets I.L., Saikkonen P.J. 2020. Stationarity and ergodicity of Vector STAR models. Econometric Reviews, 39:4, 407-414.
Lütkepohl H. 2005. New Introduction to Multiple Time Series Analysis, Springer.
Lanne M., Virolainen S. 2025. A Gaussian smooth transition vector autoregressive model: An application to the macroeconomic effects of severe weather shocks. Unpublished working paper, available as arXiv:2403.14216.
Virolainen S. 2025. Identification by non-Gaussianity in structural threshold and smooth transition vector autoregressive models. Unpublished working paper, available as arXiv:2404.19707.
@keywords internal
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.