jarquebera: Jarque-Bera test

jarqueberaR Documentation

Jarque-Bera test

Description

Performs Jarque-Bera goodness of fit test for normality.

Usage

row_jarquebera(x)

col_jarquebera(x)

Arguments

x

numeric matrix.

Details

row_jarquebera(x) - Jarque-Bera test on rows. col_jarquebera(x) - Jarque-Bera test on columns.

Results should be the same as running moments::jarque.test(x) on every row (or column) of x

Value

a data.frame where each row contains the results of Jarque-Bera test performed on the corresponding row/column of x.

Each row contains the following information (in order):
1. obs - number of observations
2. skewness - skewness
3. kurtosis - kurtosis
4. df - degrees of freedom
5. statistic - chi-squared statistic
6. pvalue - p-value

Author(s)

Karolis Koncevičius

See Also

shapiro.test()

Examples

col_jarquebera(iris[,1:4])
row_jarquebera(t(iris[,1:4]))


karoliskoncevicius/matrixTests documentation built on Oct. 18, 2023, 5:50 a.m.