epps.test | R Documentation |
Performs the asymptotic Epps test of normality for univariate time series. Computes the p-value using the asymptotic Gamma Distribution.
epps.test(y, lambda = c(1,2))
y |
a numeric vector or an object of the |
lambda |
a numeric vector for evaluating the characteristic function. This values could be selected by the user for a better test performance. By default, the values are 'c(1,2)', another plausible option is to select random values. |
The Epps test minimize the process' empirical characteristic function using a
quadratic loss in terms of the process two first moments. Nieto-Reyes, A.,
Cuesta-Albertos, J. & Gamboa, F. (2014) upgrade the test implementation by
allowing the option of evaluating the characteristic function with random values.
The amoebam()
function of Press, W.H., Teukolsky, S.A., Vetterling,
W.T. and Flannery, B.P. (2007), performs the optimal search.
A list with class "h.test"
containing the following components:
statistic: |
the Epps statistic. |
parameter: |
the test degrees freedoms. |
p.value: |
the p value. |
alternative: |
a character string describing the alternative hypothesis. |
method: |
a character string “Epps test”. |
data.name: |
a character string giving the name of the data. |
Asael Alonzo Matamoros and Alicia Nieto-Reyes.
Epps, T.W. (1987). Testing that a stationary time series is Gaussian. The Annals of Statistic. 15(4), 1683-1698.
Nieto-Reyes, A., Cuesta-Albertos, J. & Gamboa, F. (2014). A random-projection based test of Gaussianity for stationary processes. Computational Statistics & Data Analysis, Elsevier, vol. 75(C), pages 124-141.
Press, W.H., Teukolsky, S.A., Vetterling, W.T. and Flannery, B.P. (2007). Numerical Recipes. The Art of Scientific Computing. Cambridge University Press.
lobato.test
# Generating an stationary arma process
y = arima.sim(100,model = list(ar = 0.3))
epps.test(y)
# Epps tests with random lambda values
y = arima.sim(100,model = list(ar = c(0.3,0.2)))
epps.test(y, lambda = rnorm(2,mean = 1,sd = 0.1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.