When modelling data with ARIMA models, it is sometimes useful to plot the inverse characteristic roots. The following functions will compute and plot the inverse roots for any fitted ARIMA model (including seasonal models).# Compute AR roots arroots <- function(object) { if(!("Arima" %in% class(object)) & !("ar" %in% class(object))) stop("object must be of class Arima or ar") if("Arima" %in% class(object)) parvec <- object$model$phi else parvec <- object$ar if(length(parvec) > 0) { …