powered by
outidentify
outidentify performs one iteration of Wei's iterative procedure to identify impact, locations and type of outliers in arma processes
outidentify(x, object, alpha = 0.05, robust = FALSE)
vector, the time series
output of a model fit with the function arima (from stats)
the level of the tests for deciding which value is to be considered an outlier
logical, should the standard error be computed robustly?
out list with elements
matrix with time index (ind), type of outlier (1 = AO, 2 = IO) and value of test statistic (lambda)
output of final arima model where the outliers are incorporated as fixed regressors
# NOT RUN { data(SPRUCE) out <- arima(SPRUCE,order=c(2,0,0)) out2 <- outidentify(SPRUCE,out,alpha=0.05, robust = FALSE) # }
Run the code above in your browser using DataLab