checkPM
checks that the arguments p and M are correctly set.
checkPM(p, M, model = c("GMAR", "StMAR", "G-StMAR"))
a positive integer specifying the order of AR coefficients.
a positive integer specifying the number of mixture components.
a size (2x1) vector specifying the number of GMAR-type components M1
in the
first element and StMAR-type components M2
in the second. The total number of mixture components is M=M1+M2
.
is "GMAR", "StMAR" or "G-StMAR" model considered? In G-StMAR model the first M1
components
are GMAR-type and the rest M2
components are StMAR-type.
Doesn't return anything, but throws an informative error if something is wrong.