wle.ar
, the remain functions are for internal use and they should not call by the users. They are not documented here.wle.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", 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, approx.w=TRUE)
(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
a weighted likelihood estimation is used to have a starting value.TRUE
warnings are printed.TRUE
an approximation is used to
evaluate the weights in the outlier identification procedure.x
.max.iter.out
iteration are reached.min.weight
: 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. 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.
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.
data(lh)
wle.ar(x=lh, order=c(3,0), group=30)
Run the code above in your browser using DataLab