This bootstrap procedure is described on pg. 771 of CHP 2014.
CHPbootCV(mdl, rho_b, N, msvar)Bootstrap critical values
List containing model attributes (see ARmdl).
Number determining bounds for distribution of rh0 (i.e. rho ~ [-rho_b,rho_b]).
Number of bootstrap simulations.
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.