Description Details Author(s) References See Also Examples
This package implements the Hansen-Racine nonparametric bootstrap model average unit root test.
The DESCRIPTION file:
This package was not yet installed at build time.
Index: This package was not yet installed at build time.
vignette("bmmaur", package = "hr")
Jeffrey S. Racine [aut, cre]
Maintainer: Jeffrey S. Racine <racinej@mcmaster.ca>
Racine (2017), “Bootstrap Mallows Model Averaging Unit Root Inference,” Technical Report.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Generate a series with a unit root, MA errors
set.seed(42)
T <- 100
x <- arima.sim(list(order=c(0,1,1),ma=-0.8),n=T)
## Compute the test
hr.test(x,B=99)
## The Phillips-Perron test rejects 100% of the time for this DGP
suppressPackageStartupMessages(library("tseries"))
pp.test(x)
## The ADF test with BIC model selection incorrectly rejects the null a large
## fraction of the time for this DGP
suppressPackageStartupMessages(library("CADFtest"))
CADFtest(x,max.lag.y=round(12*(T/100)^0.25),criterion="BIC",type="drift")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.