Learn R Programming

DescTools (version 0.99.6)

JarqueBeraTest: Jarque--Bera Test

Description

Tests the null of normality for x using the Jarque-Bera test statistic.

Usage

JarqueBeraTest(x)

Arguments

x
a numeric vector or time series.

Value

  • A list with class "htest" containing the following components:
  • statisticthe value of the test statistic.
  • parameterthe degrees of freedom.
  • p.valuethe p-value of the test.
  • methoda character string indicating what type of test was performed.
  • data.namea character string giving the name of the data.

Details

This test is a joint statistic using skewness and kurtosis coefficients. Missing values are not allowed.

References

Cromwell, J B, Labys, W C and Terraza, M (1994): Univariate Tests for Time Series Models, Sage, Thousand Oaks, CA, pages 20--22.

Examples

Run this code
x <- rnorm(100)  # null
JarqueBeraTest(x)

x <- runif(100)  # alternative
JarqueBeraTest(x)

Run the code above in your browser using DataLab