Displaying 1 result from an estimated 1 matches for "antibacterial".
2009 Mar 29
2
re form data for aov()?
I have data in a file named hands.dat, which is given at the end of this
question. (It's from a stats textbook example on anova). I'd like to do an
aov on this, which I guess would be
d <- read.table("~/hands.dat", header=TRUE)
aov(Bacterial.Counts ~ Water + Soap + Antibacterial.Soap + Alcohol.Spray,
data=d)
but this fails. Do I need to break d$Method up into columns for each
category, with boolean entries? Or is there a way to do this more cleanly?
Data file (hands.dat)
============
Bacterial.Counts Method
74 Water
84 Soap
70 Antibacterial.Soap...