[R] shapiro.test

Rui Barradas ruipbarradas at sapo.pt
Fri Feb 21 23:04:26 CET 2014


Hello,

Not answering directly to your question, if the sample size is a 
documented problem with shapiro.test and you want a normality test, why 
don't you use ?ks.test?

m <- mean(HP_TrinityK25$V2)
s <- sd(HP_TrinityK25$V2)

ks.test(HP_TrinityK25$V2, "pnorm", m, s)


Hope this helps,

Rui Barradas

Em 21-02-2014 15:59, Gonzalo Villarino Pizarro escreveu:
> Dear R users,
> Please help with with this maybe basic question. I am trying to see if my
> data is normal but is a large file and the test does not work.
> I keep getting the message : "Error in shapiro.test(x = HP_TrinityK25$V2)
> :  sample size must be between 3 and 5000"
> thanks!
>
>   shapiro.test(x=HP_TrinityK25$V2)
> Error in shapiro.test(x = HP_TrinityK25$V2) : sample size must be between 3
> and 5000
>
> ##Note:
> HP_TrinityK25= my file
> HP_TrinityK25$V2= data in my file
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list