Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

gmvarkit (version 1.5.0)

in_paramspace_int: Determine whether the parameter vector lies in the parameter space

Description

in_paramspace_int checks whether the parameter vector lies in the parameter space.

Usage

in_paramspace_int(
  p,
  M,
  d,
  params,
  all_boldA,
  alphas,
  all_Omega,
  W_constraints = NULL,
  stat_tol = 0.001,
  posdef_tol = 1e-08
)

Arguments

p

a positive integer specifying the autoregressive order of the model.

M

a positive integer specifying the number of mixture components.

d

the number of time series in the system.

params

a real valued vector specifying the parameter values.

For unconstrained models:

Should be size ((M(pd2+d+d(d+1)/2+1)1)x1) and have the form θ=(υ1, ...,υM, α1,...,αM1), where

  • υm =(ϕm,0,ϕm,σm)

  • ϕm=(vec(Am,1),...,vec(Am,p)

  • and σm=vech(Ωm), m=1,...,M.

For constrained models:

Should be size ((M(d+d(d+1)/2+1)+q1)x1) and have the form θ=(ϕ1,0,...,ϕM,0,ψ, σ1,...,σM,α1,...,αM1), where

  • ψ (qx1) satisfies (ϕ1,..., ϕM)= Cψ where C is (Mpd2xq) constraint matrix.

For same_means models:

Should have the form θ=(μ,ψ, σ1,...,σM,α1,...,αM1), where

  • μ=(μ1,...,μg) where μi is the mean parameter for group i and g is the number of groups.

  • If AR constraints are employed, ψ is as for constrained models, and if AR constraints are not employed, ψ= (ϕ1,...,ϕM).

For structural GMVAR model:

Should have the form θ=(ϕ1,0,...,ϕM,0,ϕ1,...,ϕM,vec(W),λ2,...,λM,α1,...,αM1), where

  • λm=(λm1,...,λmd) contains the eigenvalues of the mth mixture component.

If AR parameters are constrained:

Replace ϕ1,..., ϕM with ψ (qx1) that satisfies (ϕ1,..., ϕM)= Cψ, as above.

If same_means:

Replace (ϕ1,0,...,ϕM,0) with (μ1,...,μg), as above.

If W is constrained:

Remove the zeros from vec(W) and make sure the other entries satisfy the sign constraints.

If λmi are constrained:

Replace λ2,...,λM with γ (rx1) that satisfies (λ2,..., λM)= Cλγ where Cλ is a (d(M1)xr) constraint matrix.

Above, ϕm,0 is the intercept parameter, Am,i denotes the ith coefficient matrix of the mth mixture component, Ωm denotes the error term covariance matrix of the m:th mixture component, and αm is the mixing weight parameter. The W and λmi are structural parameters replacing the error term covariance matrices (see Virolainen, 2020). If M=1, αm and λmi are dropped. If parametrization=="mean", just replace each ϕm,0 with regimewise mean μm. vec() is vectorization operator that stacks columns of a given matrix into a vector. vech() stacks columns of a given matrix from the principal diagonal downwards (including elements on the diagonal) into a vector. The notation is in line with the cited article by Kalliovirta, Meitz and Saikkonen (2016) introducing the GMVAR model.

all_boldA

3D array containing the ((dp)x(dp)) "bold A" matrices related to each mixture component VAR-process, obtained from form_boldA. Will be computed if not given.

alphas

(Mx1) vector containing all mixing weight parameters, obtained from pick_alphas.

all_Omega

3D array containing all covariance matrices Ωm, obtained from pick_Omegas.

W_constraints

set NULL for reduced form models. For structural models, this should be the constraint matrix W from the list of structural parameters.

stat_tol

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.

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 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.

Value

Returns TRUE if the given parameter values are in the parameter space and FALSE otherwise. This function does NOT consider the identifiability condition!

Details

The parameter vector in the argument params should be unconstrained and it is used for structural models only.

References

  • 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