check_pMd
checks the arguments p, M, and d.
check_pMd(p, M, d, model = c("GMVAR", "StMVAR", "G-StMVAR"))
Throws an error if something is wrong.
a positive integer specifying the autoregressive order of the model.
a positive integer specifying the number of mixture components.
a size (2x1) integer vector specifying the number of GMVAR type components M1
in the first element and StMVAR type components M2
in the second element. The total number of mixture components
is M=M1+M2
.
the number of time series in the system.