Re: [R] Running an ANOVA with a BY

2009-09-29 Thread xavier . chardon
nction(x) data.frame( fitted(x))) ldply(res.aov, coefficients) HTH, Xavier - Mail Original - De: "Tobias Verbeke" À: "baxterj" Cc: r-help@r-project.org Envoyé: Lundi 28 Septembre 2009 22h55:34 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [R

Re: [R] Running an ANOVA with a BY

2009-09-28 Thread Tobias Verbeke
baxterj wrote: I downloaded the package and got it to work with the coding: model <- function(df) {aov(values ~ WellID, data = twelldata)} Hmm.. I guess you mean to use 'data = df' instead of 'data = twelldata' ANOVA1way <- dlply(twelldata, .(Analyte), model) print(ANOVA1way) This gives me

Re: [R] Running an ANOVA with a BY

2009-09-28 Thread baxterj
I downloaded the package and got it to work with the coding: model <- function(df) {aov(values ~ WellID, data = twelldata)} ANOVA1way <- dlply(twelldata, .(Analyte), model) print(ANOVA1way) This gives me degrees of freedom and sum of squares for each anova per analyte. However, I cant get the su

Re: [R] Running an ANOVA with a BY

2009-09-28 Thread David Scott
baxterj wrote: I have a simple 1 way anova coded like summary(ANOVA1way <- aov(Value ~ WellID, data = welldata)) How can I use the BY function to do this ANOVA for each group using another variable in the dataset?? I tried coding it like this, but it doesn't seem to work. summary(ANOVA1way <-

Re: [R] Running an ANOVA with a BY

2009-09-28 Thread David Winsemius
On Sep 28, 2009, at 11:39 AM, baxterj wrote: I have a simple 1 way anova coded like summary(ANOVA1way <- aov(Value ~ WellID, data = welldata)) How can I use the BY function to do this ANOVA for each group using another variable in the dataset?? I tried coding it like this, but it doesn'

Re: [R] Running an ANOVA with a BY

2009-09-28 Thread Tobias Verbeke
baxterj wrote: I have a simple 1 way anova coded like summary(ANOVA1way <- aov(Value ~ WellID, data = welldata)) How can I use the BY function to do this ANOVA for each group using another variable in the dataset?? I tried coding it like this, but it doesn't seem to work. summary(ANOVA1way <-

[R] Running an ANOVA with a BY

2009-09-28 Thread baxterj
I have a simple 1 way anova coded like summary(ANOVA1way <- aov(Value ~ WellID, data = welldata)) How can I use the BY function to do this ANOVA for each group using another variable in the dataset?? I tried coding it like this, but it doesn't seem to work. summary(ANOVA1way <- by(welldata, An