shapiro.test(..) cannot deal with more than 5000 data points

Remi.b picture Remi.b · Jun 15, 2013 · Viewed 18.7k times · Source

In R, the shapiro.test() function cannot run if the sample size exceeds 5000.

shapiro.test(rnorm(10^4))

Why is it so ? Can I overpass this limitation ?

Answer

Remi.b picture Remi.b · Jun 15, 2013

This is a safety limitation. Please read this: Perform a Shapiro-Wilk Normality Test

Other tests of normality do not have this limitation such as the Kolmogorov-Smirnov test:

ks.test(x=rnorm(10^4),y='pnorm',alternative='two.sided')