Re: [R] Running an ANOVA with a BY

2009-09-28 Thread baxterj
et the summary(ANOVA1way) to work so that I can get p-values, etc... How can I do this? Jodi Tobias Verbeke-2 wrote: > > baxterj wrote: >> I have a simple 1 way anova coded like >> >> summary(ANOVA1way <- aov(Value ~ WellID, data = welldata)) >> >> H

Re: [R] SAS user now converting to R - Help with Transpose

2009-09-28 Thread baxterj
names(DF))) > > On Mon, Sep 28, 2009 at 11:24 AM, baxterj wrote: >> >> I am just starting to code in R and need some help as I am used to doing >> this >> in SAS. >> >> I have a dataset that looks like this: >> >> Chemical Well1 Well2 Well3 Wel

[R] SAS user now converting to R - Help with Transpose

2009-09-28 Thread baxterj
I am just starting to code in R and need some help as I am used to doing this in SAS. I have a dataset that looks like this: Chemical Well1 Well2 Well3 Well4 BOD 13.2 14.2 15.5 14.2 O2 7.8 2.6 3.5 2.4 TURB 10.2 14.6 18.5 17.3 and so on with more chemicals I would like to transpose my data s

[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