Multivariate Regime Switching Model with Flexible Threshold Variable