Description Usage Arguments Details Value Author(s) References See Also Examples
Robustly estimates the autocorrelation function of a time series based on a robust estimation of the partial autocorrelation function. See Dürre et al. (2015) for details.
This function is intended for internal usage only. Users should rather use the wrapper function acfrob
with argument approach = "acfpartrank"
.
1 2 | acfrob.partrank(x, lag.max, cor.method = c("spearman", "kendall", "quadrant", "gaussian",
"masarotto"), biascorr = TRUE, partial = FALSE)
|
x |
univariate numeric vector or time series object. |
lag.max |
integer value giving the maximum lag at which to calculate the acf. |
cor.method |
character string indicating the correlation estimator to be used. Must be one of |
biascorr |
logical indicating whether a bias correction of the result should be done. Note that this bias correction is only valid for Gaussian processes. There is no bias correction available for |
partial |
logical indicating whether the function should return the partial acf instead of the acf. |
This function estimates the autocorrelation function based on partial autocorrelations. This procedure was first proposed by Masarotto (1987) and has the advantage that it produces positive definite and therefore valid acf estimations. To estimate the pacf, the estimation procedure described in Möttönen et al. (1999) is used. It depends on successive correlation estimations of forward and backward residuals.
There are several possible rank estimators available. The argument cor.method
specifies which of the following approaches is to be used, where cor.method = "spearman"
is the default.
"spearman"
One uses the well known Spearman's rho with a consistency correction under normality. See Croux and Dehon (2010) for this correction and cor
for more information about Spearman's rho.
"kendall"
One uses the well known Kendall's tau with a consistency correction under normality. See Croux and Dehon (2010) for this correction and cor
for more information about Kendall's tau. Note that Kendall's tau can get rather time consuming for very long time series (e.g. more than 10000 ovservations).
"quadrant"
One uses the quadrant correlation with a consistency correction under normality. See Croux and Dehon (2010) for this correction and more information about the estimator. Note that this estimator has a rather low efficiency under normality and should therefore only be applied for time series with a high amount of outliers.
"gaussian"
One uses the Gaussian rank correlation which is the usual correlation applied to transformed values. Denote R(i) the rank of X(i) and Phi the distribution function of the normal distribution, then the transformation is defined as
Φ^{-1}(R(i)/(n+1)).
This estimator has the same asymptotic efficiency as the usual empirical correlation under normality, but is robust to some degree.
"masarotto"
One follows the proposal of Masarotto (1987), which is a kind of M estimator. Starting from initial estimations for the variance by the Qn
and for the correlation by the GK estimator, (using the Qn) new variances and correlations are iteratively computed until convergence, using weights which are defined by the following psi function
psi(x) = 3/(1+x)
Note that this is not really a rank or sign based estimator. See Masarotto (1987) for more details.
The computation of the acf from the pacf is carried out by the algorithm described in Möttönen et al. (1999).
A named list of the following elements:
acfvalues |
Numeric vector of estimated (partial) autocorrelations at the lags 1,..., |
are |
numeric value giving the asymptotic relative efficiency (ARE) of the estimator as compared to the classical nonrobust estimator, under the assumption that the observations are uncorrelated and from a Gaussian distribution. The ARE is currently not available for this estimation approach and is therefore |
Alexander Dürre, Tobias Liboschik and Jonathan Rathjens
Croux, C. and Dehon, C. (2010): Influence functions of the Spearman and Kendall correlation measures, Statistical Methods & Applications, vol. 19, 497–515, doi: 10.1007/s10260-010-0142-z.
Dürre, A., Fried, R. and Liboschik, T. (2015): Robust estimation of (partial) autocorrelation, Wiley Interdisciplinary Reviews: Computational Statistics, vol. 7, 205–222, doi: 10.1002/wics.1351.
Masarotto, D. (2003): Robust identification of autoregressive moving average models, Applied Statistics, vol. 36, 214–220, doi: 10.2307/2347553.
Möttönen, J., Koivunen, V. and Oja, H. (1999): Robust autocovariance estimation based on sign and rank correlation coefficients, In: Proceedings of the IEEE Signal Processing Workshop on Higher-Order Statistics, 187–190, doi: 10.1109/HOST.1999.778722.
The wrapper function acfrob
.
Alternative acf subroutines: acfrob.GK
, acfrob.filter
, acfrob.multi
, acfrob.RA
, acfrob.rank
, acfrob.bireg
, acfrob.trim
.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.