Skip to content
Prev 6079 / 20628 Next

lme/anova vs paired t test query

I believe I know the answer for this one because I used to struggle
with this for quite a while. Eventually I figured it out.

To match up with the paired t-test, you need

(a2 <- anova(lme(prevalence~sex,random=list(tripsite=pdCompSymm(~sex-1)),data=dat,method="REML")))
(fstat2 <- a2[["F-value"]][2]) # you get 0.789627

The catch here is that the compound-symmetry structure for the
variance-covariance structure of the random components in the lme
model is equivalent to a paired t-test, a special of the traditional
repeated-meaures one-way ANOVA.

Gang
On Mon, May 23, 2011 at 2:55 PM, Ben Bolker <bbolker at gmail.com> wrote: