powered by
Test of unit root against a stationnary three regime SETAR alternative
BBCTest(x, m, series, testStat = c("LR", "Wald", "LM"), trim = 0.1, grid = c("minPerc", "minObs"))
time series
Number of lags under the alternative
time series name (optional)
Type of test statistic to use
trimming parameter indicating the minimal percentage of observations in each regime
Whether a minimal number of percentage or observations should be imposed. See details
A object of class "BBC2004Test" containing:
-The value of the sup Test
-The version of test used (either Wald, LM or LR).
TODO
setarTest for a test with stationarity as a null.
setarTest
# NOT RUN { BBCTest(lynx, m=3, test="Wald", grid="minPerc") # }
Run the code above in your browser using DataLab