Learn R Programming

matrixTests (version 0.2.2)

jarquebera: Jarque-Bera test

Description

Performs Jarque-Bera goodness of fit test for normality.

Usage

row_jarquebera(x)

col_jarquebera(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

Arguments

x

numeric matrix.

Author

Karolis Koncevičius

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

See Also

Examples

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

Run the code above in your browser using DataLab