[R] ANOVA error

From: Dani Valverde <daniel.valverde_at_uab.cat>
Date: Thu, 19 Jun 2008 10:54:12 +0200

I have a dataframe named myMatrix with the structure

Treatment Time Cr mIb ...

Being the treatment and time the predictors and Cr, mIb and so on the response variables. When I call

Cr.aov <- aov(Cr~Treatment, data=myMatrix)

I got this error:

Error in storage.mode(y) <- "double" :
  invalid to change the storage mode of a factor In addition: Warning message:
In model.response(mf, "numeric") :
  using type="numeric" with a factor response will be ignored

Can anyone help me? I take the chance to ask another question. I would like to perform an ANOVA on different variables. Is the call aov(Cr+mIb+...~Treatment, data=myMatrix) o correct way of doing it? What I would like to have is a p value for the variance for each response variable.


Daniel Valverde Saubí

Grup de Biologia Molecular de Llevats
Facultat de Veterinària de la Universitat Autònoma de Barcelona
Edifici V, Campus UAB
08193 Cerdanyola del Vallès- SPAIN

Centro de Investigación Biomédica en Red
en Bioingeniería, Biomateriales y
Nanomedicina (CIBER-BBN)

Grup d'Aplicacions Biomèdiques de la RMN
Facultat de Biociències
Universitat Autònoma de Barcelona
Edifici Cs, Campus UAB
08193 Cerdanyola del Vallès- SPAIN
+34 93 5814126

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 19 Jun 2008 - 08:58:33 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 19 Jun 2008 - 22:30:53 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive