powered by
This function allows you to make Cook and Vougas(2009) nonlinear unit root test
Cook_Vougas_2009_unit_root(x, model, max_lags)
series name,
if model A 1, if model B 2, if model C 3, model D 4
maximum lag(optimal lag selected by AIC)
# NOT RUN { set.seed(12345) x <- rnorm(1000) Cook_Vougas_2009_unit_root(x,model=1,max_lags=3) data(IBM) Cook_Vougas_2009_unit_root(x=IBM,model=3,max_lags=3) # } # NOT RUN { # }
Run the code above in your browser using DataLab