data(macro) # US macro data, 1967M1-2025M7
# It takes time
# \donttest{
y=macro[1:200,"INF"]
za2=ZA_2br(y,
ic=c("AIC","BIC")[2],
pmax=8,
fixed=TRUE,
model=c("intercept","trend","both")[1],
trim=0.1,
eq=1,
season=FALSE)
za2$timeElapse[3]/60
za2$teststat
za2$cval
y[za2$bpoint1,] #The first dated strictural change
y[za2$bpoint2,] #The second dated strictural change
# }
Run the code above in your browser using DataLab