in_paramspace_int
checks whether the parameter vector lies in the parameter
space.
in_paramspace_int(
p,
M,
d,
params,
all_boldA,
alphas,
all_Omega,
W_constraints = NULL,
stat_tol = 0.001,
posdef_tol = 1e-08
)
a positive integer specifying the autoregressive order of the model.
a positive integer specifying the number of mixture components.
the number of time series in the system.
a real valued vector specifying the parameter values.
Should be size
and
Should be size
Should have the form
If AR constraints are employed,
Should have the form
Replace
Replace
Remove the zeros from
Replace
Above, parametrization=="mean"
, just replace each
3D array containing the form_boldA
. Will be computed if not given.
(Mx1) vector containing all mixing weight parameters, obtained from pick_alphas
.
3D array containing all covariance matrices pick_Omegas
.
set NULL
for reduced form models. For structural models, this should be the
constraint matrix
numerical tolerance for stationarity of the AR parameters: if the "bold A" matrix of any regime
has eigenvalues larger that 1 - stat_tol
the model is classified as non-stationary. Note that if the
tolerance is too small, numerical evaluation of the log-likelihood might fail and cause error.
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 model is classified as not satisfying positive definiteness assumption. Note that if the tolerance is too small, numerical evaluation of the log-likelihood might fail and cause error.
Returns TRUE
if the given parameter values are in the parameter space and FALSE
otherwise.
This function does NOT consider the identifiability condition!
The parameter vector in the argument params
should be unconstrained and it is used for
structural models only.
Kalliovirta L., Meitz M. and Saikkonen P. 2016. Gaussian mixture vector autoregression. Journal of Econometrics, 192, 485-498.
Virolainen S. 2020. Structural Gaussian mixture vector autoregressive model. Unpublished working paper, available as arXiv:2007.04713.
@keywords internal