The Lomnicki-Jarque-Bera Test of normality (JB test)

Description

This function performs the Lomnicki-Jarque-Bera Test of normality and returns test statistics and associated p-values.

Usage

1
    jb.test(x)

Arguments

x

a vector or matrix of variables to be tested

Value

Vector of test statistics and p-value

References

Jarque, C.M. and A.K. Bera (1987), “A Test for Normality of Observations and Regression Residuals”, International Statistical Review, 55, 163–172.

Lomnicki, Z.A. (1961), “Tests for Departure from Normality in the Case of Linear Stochastic Processes”, Metrika, 4, 37–62.

See Also

rob.sk, rob.kr, ljung.box.test

Examples

1
2
3
4
5
6
7
    # for a vector
    x <- rnorm(1000)
    jb.test(x)

    # for a matrix
    X <- matrix(rnorm(10000), 5000,2)
    jb.test(X)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.