test_AD_2sample: 2 sample Anderson Darling test

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/test_AD_2sample.R

Description

Returns a vector of p-values and test statistics of a 2 sample Anderson-Darling goodness-of-fit test

Usage

1
test_AD_2sample(datX, datY, p)

Arguments

datX

Matrix of p columns to be tested with datY

datY

Matrix of p columns

p

The number of columns of the matrices

Details

This is a simple wrapper around the original adk.test function in the package adk, which is currently deprecated.

Value

pval

Vector of p-values, of length p

testStat

Vector of test statistics, of length p

Author(s)

Subhrangshu Nandi; Statistics PhD student, UW Madison; snandi@wisc.edu or nands31@gmail.com

References

Pomann, G.M., Staicu, A.M., and Ghosh,S. (2016). A two-sample distribution-free test for functional data with application to a diffusion tensor imaging study of multiple sclerosis. Journal of the Royal Statistical Society: Series C (Applied Statistics).

Scholz, F. W., & Stephens, M. A. (1987). K-sample Anderson<e2><80><93>Darling tests. Journal of the American Statistical Association, 82(399), 918-924.

See Also

adk.test

Examples

1
2
3
4
5
6
7
8
9
  U1 <- stats::rnorm(n = 20, mean = 2, sd = 1)
  U2 <- stats::rnorm(n = 20, mean = 1, sd = 2)
  
  V1 <- stats::rnorm(n = 20, mean = 0, sd = 1)
  V2 <- stats::rnorm(n = 20, mean = 1, sd = 2)
  
  Mat1 <- cbind(U1, U2)
  Mat2 <- cbind(V1, V2)
  testOutput <- test_AD_2sample( datX = Mat1, datY = Mat2, p = 2 )

snandi/Registration documentation built on May 30, 2019, 5:04 a.m.