elbouch.statistic | R Documentation |
Computes the El Bouch, Michel, & Comon's z test statistic for normality of a univariate or bivariate time series.
elbouch.statistic(y, x = NULL)
y |
a numeric vector or an object of the |
x |
a numeric vector or an object of the |
This function computes Mardia's standardized 'z = (B - E_B)/ sd_B' statistic corrected by El Bouch, et al. (2022) for stationary bivariate time series. Where: 'B' is the square of a quadratic form of the process 'c(y, x)'; 'E_B' and 'sd_B' are the estimator's expected value and standard error respectively. If 'x' is set to 'NULL', the test computes the univariate counterpart.
a real value with El Bouch test's statistic.
Asael Alonzo Matamoros.
El Bouch, S., Michel, O. & Comon, P. (2022). A normality test for Multivariate dependent samples. Journal of Signal Processing. Volume 201.
Mardia, K. (1970). Measures of multivariate skewness and kurtosis with applications. Biometrika, 57 519-530
Lobato, I., & Velasco, C. (2004). A simple test of normality in time series. Journal of econometric theory. 20(4), 671-689.
lobato.statistic
# Genere an univariate stationary ARMA process
y = arima.sim(100,model = list(ar = 0.3))
elbouch.statistic(y)
# Generate a bivariate Gaussian random vector
x = rnorm(200)
y = rnorm(200)
elbouch.statistic(y = y, x = x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.