Displaying 2 results from an estimated 2 matches for "welldata".
2009 Sep 28
4
Running an ANOVA with a BY
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, Analyte, function(x) aov(Value ~ WellID,
data = welldata)))
In SAS I would code it like this...
2011 Mar 11
3
Large dataset operations
...normx <- paste("normalised_",rep,sep="")
for (row in 1:rows) {
plateMean <- mean(data[[x]][data$plateNo == data$plateNo[row]])
wellData <- data[[x]][row]
norm[[normx]][row] <- wellData / plateMean
}
}
Any help or tips would be greatly appreciated!
Thanks,
Haakon
[[alternative HTML version deleted]]