[R] shapiro-wilks test

Mark Myatt mark at myatt.demon.co.uk
Sat Dec 22 15:07:49 CET 2001


Sukhaswami Malladi <smalladi at lexgen.com> writes:
>Hello,
>
>I am a newbie to R. I would like to test my data for normality using the
>Shapiro-Wilks
>test. How do I go about it ?
>
>My data is in form of a table with 2 columns - colA, colB and I want to know
>if
>colB values are a normal distribution.
>
>First I read the data into R using 
>d <- read.table("tab.dat",header=T)
>
>Then if I type 
>shapiro.test(d)
>
>I get the error message: 
>
>Error in "[.data.frame"(x, complete.cases(x)) : 
>        undefined columns selected
>
>and if I type 
>shapiro.test(d.colB)
>
>I get message:

I think you mean:

        shapiro.test(d$colB)

Mark

--
Mark Myatt


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list