This function serves to detect whether there are any additive outliers (AO). It implements the test statistic lambda2,t proposed by Chang, Chen and Tiao (1988).
detectAO(object, alpha =0.05, robust =TRUE)
Arguments
object: a fitted ARIMA model
alpha: family significance level (5% is the default) Bonferroni rule is used to control the family error rate.
robust: if true, the noise standard deviation is estimated by mean absolute residuals times sqrt(pi/2). Otherwise, it is the estimated by sqrt(sigma2) from the arima fit.
Returns
A list containing the following components: - ind: the time indices of potential AO
lambda2: the corresponding test statistics
References
Chang, I.H., Tiao, G.C. and C. Chen (1988). Estimation of Time Series Parameters in the Presence of Outliers. Technometrics, 30, 193-204.