Check that p, M, and d are correctly set
check_pMd
checks the arguments p, M, and d.
check_pMd( p, M, d, weight_function = c("relative_dens", "logistic", "mlogit", "exponential", "threshold", "exogenous"), identification = c("reduced_form", "recursive", "heteroskedasticity", "non-Gaussianity") )
p
: the autoregressive order of the modelM
: the number of regimesd
: the number of time series in the system, i.e., the dimensionThrows an error if something is wrong.