Description Usage Arguments References
This function performs the CHP test as outline in Carrasco, M., Hu, L. and Ploberger, W. (2014). This function can be used to recreate results from Table III of the paper. Econometrica as the original publisher and source code can be found here: https://www.econometricsociety.org/content/supplement-optimal-test-markov-switching-parameters.
1 | CHPtest(Y, p = 1, N = 3000, rho_b = 0.7, var_switch = 0)
|
Y |
the series to be tested |
p |
Number of autoregressive lags AR(p) |
N |
Number of Bootstrap iterations. Default is set to 3000 as in paper. |
rho_b |
bound for apriori distribution of rh0 (i.e. rho ~ \([-rho_b,rho_b]\) |
var_switch |
Indicator for switch in Variance (if = 0, only Mean is subject to switch) |
Carrasco, Marine, Liang Hu, and Werner Ploberger. 2014. “Optimal test for Markov switch- ing parameters.” Econometrica 82 (2): 765–784.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.