Skip to content

Linear Mixed Effects vs. Repeated Measures

3 messages · Cortin A. Zelaznog, Michael Lawrence, iwhite@staffmail.ed.ac.uk

#
Using lme4 syntax, I believe you want:

lmer_fit1 = lmer(
    data = df
    , formula = Response ~ Year + (1+Year|Tree)
)

contrast this with a model that assumes a constant effect of Year
across levels of Tree:

lmer_fit2 = lmer(
    data = df
    , formula = Response ~ Year + (1|Tree)
)

anova(lmer_fit1,lmer_fit2)
On Sun, Oct 7, 2012 at 4:42 PM, Cortin A. Zelaznog <cortin08 at yahoo.com> wrote:
#
Cortin,

Won't a standard mixed model analysis be identical to a repeated 
measures analysis? The only way I can see that 'circularity' is violated 
here is that the residual variance differs in the two years.
This is possible with lme, I don't know about lmer.

Isn't tree x year the same as residual for your data?
On 10/07/2012 08:42 PM, Cortin A. Zelaznog wrote: