powered by
checkPM checks that the arguments p and M are correctly set.
checkPM
checkPM(p, M)
a positive integer specifying the order of AR coefficients.
a positive integer specifying the number of mixture components or regimes.
Doesn't return anything, but throws and error if something is wrong.