# check_constraint_mat: Check the constraint matrices In uGMAR: Estimate Univariate Gaussian and Student's t Mixture Autoregressive Models

## Description

`check_constraint_mat` checks for some parts that the constraint matrices are correctly set.

## Usage

 `1` ```check_constraint_mat(p, M, restricted = FALSE, constraints = NULL) ```

## Arguments

 `p` a positive integer specifying the autoregressive order of the model. `M` For GMAR and StMAR models:a positive integer specifying the number of mixture components. For G-StMAR models:a size (2x1) integer vector specifying the number of GMAR type components `M1` in the first element and StMAR type components `M2` in the second element. The total number of mixture components is `M=M1+M2`. `restricted` a logical argument stating whether the AR coefficients φ_{m,1},...,φ_{m,p} are restricted to be the same for all regimes. `constraints` specifies linear constraints imposed to each regime's autoregressive parameters separately. For non-restricted models:a list of size (pxq_{m}) constraint matrices C_{m} of full column rank satisfying φ_{m}=C_{m}ψ_{m} for all m=1,...,M, where φ_{m}=(φ_{m,1},...,φ_{m,p}) and ψ_{m}=(ψ_{m,1},...,ψ_{m,q_{m}}). For restricted models:a size (pxq) constraint matrix C of full column rank satisfying φ=Cψ, where φ=(φ_{1},...,φ_{p}) and ψ=ψ_{1},...,ψ_{q}. The symbol φ denotes an AR coefficient. Note that regardless of any constraints, the autoregressive order is always `p` for all regimes. Ignore or set to `NULL` if applying linear constraints is not desired.

## Value

Doesn't return anything but throws an informative error if finds out that something is wrong.

uGMAR documentation built on Jan. 24, 2022, 5:10 p.m.