Skip to content
Prev 343340 / 398506 Next

Help with analysis of variance

Andrew,

I plotted your data first.  Then I made id, spell, year into factors
and did the ANOVA.
show variability in rate.
The ANOVA table agrees by showing high significance for the id:spell
interaction.
The numbers in this ANOVA table are not similar to your numbers.

Rich

mobility$id <- factor(mobility$id)
mobility$spell <- factor(mobility$spell)
mobility$year <- factor(mobility$year)

xyplot(rate ~ year | id, group=spell, data=mobility,
       pch=19, layout=c(1,5), scales=list(alternating=FALSE),
       between=list(y=1),
       strip=FALSE, strip.left=strip.custom(strip.names=c(TRUE,TRUE)))

mobility.aov <- aov(rate ~ year + id/spell, data=mobility)
anova(mobility.aov)


On Fri, Aug 22, 2014 at 7:51 AM, McCulloch, Andrew
<A.Mcculloch at leedsmet.ac.uk> wrote: