[R] ANOVA error
Dani Valverde
daniel.valverde at uab.cat
Thu Jun 19 10:54:12 CEST 2008
Hello,
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.
Best,
Dani
--
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
More information about the R-help
mailing list