wle.aic.ar(x, order = c(1, 0), seasonal = list(order = c(0, 0), period =NA), group, group.start, group.step = group.start, xreg = NULL, include.mean = TRUE, na.action = na.fail, tol = 10^(-6), tol.step = tol, equal = 10^(-3), equal.step = equal, raf = "HD", var.full = 0, smooth = 0.0031, smooth.ao = smooth, boot = 10, boot.start = 10, boot.step = boot.start, num.sol = 1, x.init = 0, x.seasonal.init = 0, max.iter.out = 20, max.iter.in = 50, max.iter.start = 200, max.iter.step = 500, verbose = FALSE, w.level = 0.4, min.weights = 0.5, population.size = 10, population.choose = 5, elements.random = 2, wle.start = FALSE, init.values = NULL, num.max = NULL, num.sol.step = 2, min.weights.aic = 0.5, approx.w = TRUE, ask = TRUE, alpha = 2, method = "WLS")
(p,d)
are the AR order and the degree of differencing.frequency(x)
).wle.init=TRUE
.group
.x
.TRUE
for undifferenced series, FALSE
for differenced ones (where a mean would not affect the fit nor predictions).tol
).tol.step
).raf="HD"
: Hellinger Distance RAF,
raf="NED"
: Negative Exponential Disparity RAF,
raf="SCHI2"
: Symmetric Chi-Squared Disparity RAF.smooth
.TRUE
warnings are printed.TRUE
a weighted likelihood estimation is used to have a starting value.TRUE
an approximation is used to
evaluate the weights in the outlier identification procedure.TRUE
, in the case of multiple roots in
the full model, the users is asked for selecting the root.wle.aic.ar
with the following components:
wle.arima
see wle.ar
help for further details.match.call
result.min.weights
: the weighted likelihood equation could have more than one solution. These roots appear for particular situation depending on contamination level and type. We introduce the min.weight
parameter in order to choose only between roots that do not down weight everything. This is not still the optimal solution, and perhaps, in the new release, this part will be change. min.weights.aic
is used as min.weights
but in the full model.
The algorithm used to classify the observations as additive outliers is
made by a genetic algorithm. The population.size
,
population.choose
and elements.random
are parameters
related to this algorithm.
The function wle.ar.wls
is used to estimate the parameter of an
autoregressive model by weighted least squares where the weights are
those from the weighted likelihood estimating equation of the full
model (the model with the hightest order).
Agostinelli C, (2004) Robust Akaike Information Criterion for ARMA models, Rendiconti per gli Studi Economici Quantitativi, 1-14, isbn: 88-88037-10-1.
Agostinelli C., (2003) Robust time series estimation via weighted likelihood, in: Development in Robust Statistics. International Conference on Robust Statistics 2001, Eds. Dutter, R. and Filzmoser, P. and Rousseeuw, P. and Gather, U., Physica Verlag.
wle.ar
data(rocky)
res <- wle.aic.ar(x=rocky, order=c(6,0), group=50, group.start=30, method="WLS")
res
plot(res$full.model$weights)
Run the code above in your browser using DataLab