Skip to content
Back to formatted view

Raw Message

Message-ID: <5307CD6A.7060807@sapo.pt>
Date: 2014-02-21T22:04:26Z
From: Rui Barradas
Subject: shapiro.test
In-Reply-To: <CAE2iU+bQXQ2u9Ceg_QLw2a0odhj20-KS768oj64vEZxvHgMisA@mail.gmail.com>

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.
>