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

旧时模样 提交于 2021-02-04 14:58:49

问题


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 ?


回答1:


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')


来源:https://stackoverflow.com/questions/17125458/shapiro-test-cannot-deal-with-more-than-5000-data-points

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!