Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 ?

like image 332
Remi.b Avatar asked Jun 15 '13 15:06

Remi.b


1 Answers

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')
like image 121
Remi.b Avatar answered Oct 13 '22 09:10

Remi.b