This function computes the supTS and expTS test-statistics proposed in CHP 2014.
chpStat(mdl, rho_b, ltmt, msvar)A (2 x 1) vector with supTS test statistic as first element and expTS test-statistics as second element.
List containing model attributes (see ARmdl).
Number determining bounds for distribution of rh0 (i.e. rho ~ [-rho_b,rho_b]).
List containing derivatives output from chpDmat.
Boolean indicator. If TRUE, there is a switch in variance. If FALSE only switch in mean is considered.
Carrasco, Marine, Liang Hu, and Werner Ploberger. 2014. “Optimal test for Markov switching parameters.” Econometrica 82 (2): 765–784.