README.md

cointmonitoR

Consistent Monitoring of Stationarity and Cointegrating Relationships.

Travis-CI Build Status CRAN Status Badge

install.packages("cointReg")
devtools::install_github("aschersleben/cointmonitoR", build_vignettes = TRUE)
library("cointmonitoR")
set.seed(1909)
eps <- rnorm(200)
x <- c(eps[1:100], cumsum(eps[101:200]) / 2)
test <- monitorStationarity(x, m = 93)
print(test)
oldpar <- par(mfrow = c(2, 1))
plot(test, what = "both", legend = FALSE)
par(oldpar)
vignette("cointmonitoR")
package?cointmonitoR
devtools::install_github("aschersleben/cointmonitoR", build_vignettes = TRUE)

Theoretical background

We propose a consistent monitoring procedure to detect a structural change from a cointegrating relationship to a spurious relationship. The procedure is based on residuals from modified least squares estimation, using either Fully Modified, Dynamic or Integrated Modified OLS. It is inspired by Chu et al. (1996) in that it is based on parameter estimation on a pre-break "calibration" period only, rather than being based on sequential estimation over the full sample.

See the discussion paper for further information.

This package provides the monitoring procedures for both the cointegration and the stationarity case (the latter is just a special case of the former one) as well as printing and plotting methods for a clear presentation of the results.

References



Try the cointmonitoR package in your browser

Any scripts or data that you put into this service are public.

cointmonitoR documentation built on May 2, 2019, 2:18 a.m.