Learn R Programming

matrixTests (version 0.2.2)

andersondarling: Anderson-Darling test

Description

Performs Anderson-Darling goodness of fit test for normality.

Usage

row_andersondarling(x)

col_andersondarling(x)

Value

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

Each row contains the following information (in order):

1. obs - number of observations

2. statistic - test statistic

3. pvalue - p-value

Arguments

x

numeric matrix.

Author

Karolis Koncevičius

Details

row_andersondarling(x) - Anderson-Darling test on rows. col_andersondarling(x) - Anderson-Darling test on columns.

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

See Also

Examples

Run this code
col_andersondarling(iris[,1:4])
row_andersondarling(t(iris[,1:4]))

Run the code above in your browser using DataLab