powered by
Performs rank-based portmanteau statistics.
rankQ(zt, lag = 10, output = TRUE)
rankQ function outputs the test statistics and p-values for Portmanteau tests, and returns a list with components:
rankQ
test statistics.
p-values.
time series.
the maximum lag to calculate the test statistic.
a logical value for output. Default is TRUE.
phi=t(matrix(c(-0.3, 0.5,0.6,-0.3),2,2)) y=uTAR.sim(nob=2000, arorder=c(2,2), phi=phi, d=2, thr=0.2, cnst=c(1,-1),sigma=c(1, 1)) rankQ(y$series,10,output=TRUE)
Run the code above in your browser using DataLab