powered by
LBQPlot(res, lag.max = 30, StartLag = k + 1, k = 0, SquaredQ = FALSE)
McLeod, A.I. and Zhang, Y. (2006). Partial autocorrelation parameterization for subset autoregression. Journal of Time Series Analysis, 27, 599-612.
plot.FitAR
FitAR
#fit subset AR and plot diagnostic check out<-FitAR(SeriesA, c(1,2,7), ARModel="ARp") res<-resid(out) LBQPlot(res) #note that plot produces LBQPlot and RacfPlot plot(out)
Run the code above in your browser using DataLab