Re: [R] shapiro.test

2014-02-25 Thread Keith S Weintraub
Regarding : ... I don't know what the 4th to last page would be called (could add another ante-, or in R just use tail(book,4))... According to wordsmith.org (sign up it's free, note I have no affiliation to that site) the word is preantepenultimate. Check it out:

Re: [R] shapiro.test

2014-02-24 Thread Greg Snow
Philippe, replies inline On Sat, Feb 22, 2014 at 12:29 AM, Philippe Grosjean phgrosj...@sciviews.org wrote: Greg, I really like that TeachingDemos::SnowsPenultimateNormalityTest()... If you like that function then you may appreciate

Re: [R] shapiro.test

2014-02-24 Thread Clint Bowman
Greg, For some authors the 4th page from the back should be the first page. Not so for you, however. Clint Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET: cl...@math.utah.edu Department of Ecology VOICE: (360)

Re: [R] shapiro.test

2014-02-22 Thread Rui Barradas
Hello, Inline Em 21-02-2014 23:13, Rolf Turner escreveu: On 22/02/14 11:04, Rui Barradas wrote: 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)

Re: [R] shapiro.test

2014-02-22 Thread Rui Barradas
Second. Rui Barradas Em 21-02-2014 23:44, Rolf Turner escreveu: On 22/02/14 11:53, Greg Snow wrote: SNIP Why are you testing your data for normality? For large sample sizes the normality tests often give a meaningful answer to a meaningless question (for small samples they give a

[R] shapiro.test

2014-02-21 Thread Gonzalo Villarino Pizarro
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!

Re: [R] shapiro.test

2014-02-21 Thread Rui Barradas
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

Re: [R] shapiro.test

2014-02-21 Thread Greg Snow
Rui, Note this quote from the last paragraph of the Details section of ?ks.test: If a single-sample test is used, the parameters specified in '...' must be pre-specified and not estimated from the data. Which is the exact opposite of your example. Gonzalo, Why are you testing your data

Re: [R] shapiro.test

2014-02-21 Thread Rolf Turner
On 22/02/14 11:04, Rui Barradas wrote: 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,

Re: [R] shapiro.test

2014-02-21 Thread Rolf Turner
On 22/02/14 11:53, Greg Snow wrote: SNIP Why are you testing your data for normality? For large sample sizes the normality tests often give a meaningful answer to a meaningless question (for small samples they give a meaningless answer to a meaningful question). SNIP Fortune!!! cheers,

Re: [R] shapiro.test

2014-02-21 Thread Bert Gunter
Second!! -- Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 Data is not information. Information is not knowledge. And knowledge is certainly not wisdom. H. Gilbert Welch On Fri, Feb 21, 2014 at 3:44 PM, Rolf Turner r.tur...@auckland.ac.nz wrote: On 22/02/14 11:53, Greg

Re: [R] shapiro.test

2014-02-21 Thread Philippe Grosjean
Greg, I really like that TeachingDemos::SnowsPenultimateNormalityTest()… even the tortuous way to always return a p-value == 0: # the following function works for current implementations of R # to my knowledge, eventually it may need to be expanded is.rational - function(x){ rep( TRUE,

[R] shapiro.test()

2012-06-26 Thread reso
Hey, today I wanted to use the shapiro.test() on data containing 3 numerical values per group. It is the first time that an NA was given back for some of the groups. In the follwing an example of code and output is shown: shapiro.test(c(0.000637806, 0.00175561, 0.001196708))

Re: [R] shapiro.test()

2012-06-26 Thread Özgür Asar
See ?shapiro.test ...the number of non-missing values must be between 3 and 5000. By the way, how reasonable testing normality of 3 values? Best ozgur -- View this message in context: http://r.789695.n4.nabble.com/shapiro-test-tp4634513p4634520.html Sent from the R help mailing list archive

Re: [R] shapiro.test()

2012-06-26 Thread Özgür Asar
Actually, your sample size is 3. Sorry for that. Ozgur -- View this message in context: http://r.789695.n4.nabble.com/shapiro-test-tp4634513p4634525.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] shapiro.test()

2012-06-26 Thread peter dalgaard
On Jun 26, 2012, at 16:43 , r...@uni-potsdam.de wrote: Hey, today I wanted to use the shapiro.test() on data containing 3 numerical values per group. It is the first time that an NA was given back for some of the groups. In the follwing an example of code and output is shown:

Re: [R] shapiro.test

2010-05-27 Thread Stephan Kolassa
Hi, David Winsemius schrieb: snip This would imply that ozon is a list or dataframe. snip And you tried to give the whole list to a function that only wants a vector. And whenever you suspect that your data types clash, try str() to find out just what kind of thing your data is. Here:

Re: [R] shapiro.test

2010-05-27 Thread Greg Snow
...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Stefan Scheurer Sent: Wednesday, May 26, 2010 1:37 PM To: r-help@r-project.org Subject: [R] shapiro.test Hi, I am not so sure about an error note I got

[R] shapiro.test

2010-05-26 Thread Stefan Scheurer
Hi, I am not so sure about an error note I got when using shapiro.test. I imported some data into R by wrinting it into a .txt file via tab1-read.table(etctxt,header=T) attach(tab1) The following object(s) are masked _by_ .GlobalEnv : ozon ozon$V1 [1] 2.5 3.0 5.6 4.7 6.5

Re: [R] shapiro.test

2010-05-26 Thread David Winsemius
On May 26, 2010, at 3:36 PM, Stefan Scheurer wrote: Hi, I am not so sure about an error note I got when using shapiro.test. I imported some data into R by wrinting it into a .txt file via tab1-read.table(etctxt,header=T) attach(tab1) The following object(s) are masked _by_

[R] Shapiro.test on data frame

2009-06-22 Thread Gonzalo Quiroga
Hi, I need help to perform a Shapiro.test on a data frame, I know that this test works only with vector but I guess there most be a way to permor it on a data frame instead of vactor by vector (i.e. I've got 40 variables to analyze and its kinda annoying to do it one by one) Thanks to anyone that

Re: [R] Shapiro.test on data frame

2009-06-22 Thread Henrique Dallazuanna
Try this: x - data.frame(A = runif(10), B = rnorm(10)) lapply(x, shapiro.test) On Mon, Jun 22, 2009 at 3:15 PM, Gonzalo Quiroga quirogagonz...@gmail.comwrote: Hi, I need help to perform a Shapiro.test on a data frame, I know that this test works only with vector but I guess there most be a

Re: [R] Shapiro.test on data frame

2009-06-22 Thread Dylan Beaudette
On Monday 22 June 2009, Gonzalo Quiroga wrote: Hi, I need help to perform a Shapiro.test on a data frame, I know that this test works only with vector but I guess there most be a way to permor it on a data frame instead of vactor by vector (i.e. I've got 40 variables to analyze and its kinda