[R] shapiro-wilks test

Sukhaswami Malladi smalladi at lexgen.com
Fri Dec 21 16:55:39 CET 2001


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:

Error in inherits(x, "factor") : Object "d.colB" not found

What is the correct syntax and how do I obtain this syntax from any help
documentation ?

Any suggestion is greatly appreciated.

Thanks

Sukhaswami Malladi



*************************************************************************** 
 The contents of this communication are intended only for the addressee and
may contain confidential and/or privileged material. If you are not the
intended recipient, please do not read, copy, use or disclose this
communication and notify the sender.  Opinions, conclusions and other
information in this communication that do not relate to the official
business of my company shall be understood as neither given nor endorsed by
it.  
*************************************************************************** 


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