Solved – n anderson-darling goodness of fit test for two datasets

goodness of fitr

I know ad.test() can be used for testing normality.

Is it possible to get ad.test to compare the distributions from two data samples?

x <- rnorm(1000)
y <- rgev(2000)
ad.test(x,y)

How can I perform the Anderson-Darling test on 2 samples?

Best Answer

Package adk was replaced by package kSamples:

Try:

install.packages("kSamples")  
library(kSamples)
ad.test(runif(50), rnorm(30))