CHPTest function

Carrasco, Hu, and Ploberger (2014) parameter stability test

Carrasco, Hu, and Ploberger (2014) parameter stability test

This function performs the CHP (2014) parameter stability test as outline in Carrasco, M., Hu, L. and Ploberger, W. (2014). Original source code can be found here.

CHPTest(Y, p, control = list())

Arguments

  • Y: A (T x 1) matrix of observations.

  • p: Integer determining the number of autoregressive lags.

  • control: List with test procedure options including:

    • N: Integer determining the number of Bootstrap iterations. Default is set to 3000 as in paper.
    • rho_b: Number determining bounds for distribution of rh0 (i.e. rho ~ [-rho_b,rho_b]).
    • msvar: Boolean indicator. If TRUE, there is a switch in variance. If FALSE only switch in mean is considered.
    • getSE: Boolean indicator. If TRUE, standard errors for restricted model are estimated. If FALSE no standard errors are estimated. Default is TRUE.

Returns

List of class CHPTest (S3 object) with model attributes including:

  • mdl_h0: List with restricted model attributes. This will be of class ARmdl (S3 object). See ARmdl.
  • supTS: supTS test statistic value.
  • expTS: expTS test statistic value.
  • supTS_N: A (N x 1) vector with simulated supTS test statistics under null hypothesis.
  • expTS_N: A (N x 1) vector with simulated expTS test statistics under null hypothesis.
  • pval_supTS: P-value for supTS version of parameter stability test.
  • pval_expTS: P-value for expTS version of parameter stability test.
  • supTS_cv: Vector with 90%, 95%, and 99% bootstrap critical values for supTS version of parameter stability test.
  • expTS_cv: Vector with 90%, 95%, and 99% bootstrap critical values for expTS version of parameter stability test.
  • control: List with test procedure options used.

Examples

# load data used in Hamilton 1989 y84 <- as.matrix(hamilton84GNP$GNP_gr) # Set test procedure options control = list(N = 1000, rho_b = 0.7, msvar = FALSE) # perform test with switch in mean only on Hamilton 1989 data mdl_84_msmu <- CHPTest(y84, p = 4, control = control) summary(mdl_84_msmu)

References

Carrasco, Marine, Liang Hu, and Werner Ploberger. 2014. “Optimal test for Markov switching parameters.” Econometrica 82 (2): 765–784.

  • Maintainer: Gabriel Rodriguez Rondon
  • License: GPL (>= 2)
  • Last published: 2025-02-24