Tests the null of normality for x
using the Jarque-Bera
test statistic.
jarque.bera.test(x)
a numeric vector or time series.
A list with class "htest"
containing the following components:
the value of the test statistic.
the degrees of freedom.
the p-value of the test.
a character string indicating what type of test was performed.
a character string giving the name of the data.
This test is a joint statistic using skewness and kurtosis coefficients.
Missing values are not allowed.
J. B. Cromwell, W. C. Labys and M. Terraza (1994): Univariate Tests for Time Series Models, Sage, Thousand Oaks, CA, pages 20--22.
# NOT RUN {
x <- rnorm(100) # null
jarque.bera.test(x)
x <- runif(100) # alternative
jarque.bera.test(x)
# }
Run the code above in your browser using DataLab