Linked Questions

4
votes
0answers
154 views

aov() and lme() give completely different results in analyzing repeated measures [duplicate]

I have data consisting of two measures per subject (variable score, measured at Day 0, and Day1 per each subject). There are two groups, and each subject belongs to one of them (variable Group). I ...
20
votes
5answers
19k views

Post-hocs for within subjects tests?

What is the preferred method for for conducting post-hocs for within subjects tests? I've seen published work where Tukey's HSD is employed but a review of Keppel and Maxwell & Delaney suggests ...
33
votes
2answers
25k views

What is compound symmetry in plain english?

I recently realized that a mixed-model with only subject as a random factor and the other factors as fixed factors is equivalent to an ANOVA when setting the correlational structure of the mixed model ...
23
votes
3answers
44k views

Post hoc test after ANOVA with repeated measures using R

I have performed a repeated measures ANOVA in R, as follows: aov_velocity = aov(Velocity ~ Material + Error(Subject/(Material)), data=scrd) summary(aov_velocity) ...
19
votes
2answers
10k views

How to choose random- and fixed-effects structure in linear mixed models?

Consider the following data from a two-way within subjects design: ...
18
votes
2answers
2k views

Big disagreement in the slope estimate when groups are treated as random vs. fixed in a mixed model

I understand that we use random effects (or mixed effects) models when we believe that some model parameter(s) vary randomly across some grouping factor. I have a desire to fit a model where the ...
19
votes
2answers
27k views

Repeated measures ANOVA with lme/lmer in R for two within-subject factors

I'm trying to use lme from the nlme package to replicate results from aov for repeated ...
18
votes
2answers
11k views

Paired t-test as a special case of linear mixed-effect modeling

We know that a paired t-test is just a special case of one-way repeated-measures (or within-subject) ANOVA as well as linear mixed-effect model, which can be demonstrated with lme() function the nlme ...
23
votes
2answers
2k views

Does it make sense for a fixed effect to be nested within a random one, or how to code repeated measures in R (aov and lmer)?

I have been looking through this overview of lm/lmer R formulas by @conjugateprior and got confused by the following entry: Now assume A is random, but B is fixed and B is nested within A. ...
11
votes
1answer
4k views

How to perform a 4 by 4 mixed ANOVA with between- and within-subjects contrasts using R?

Beginner user of R here struggling with a repeated measures ANOVA. I have a dataset that consists of one between subjects factor with 4 levels (coded in a single variable called 'groups'), and one ...
12
votes
2answers
8k views

How to specify specific contrasts for repeated measures ANOVA using car?

I am trying to run a repeated measures Anova in R followed by some specific contrasts on that dataset. I think the correct approach would be to use Anova() from the ...
7
votes
1answer
1k views

Equivalence between a repeated measures anova model and a mixed model: lmer vs lme, and compound symmetry

I have some trouble obtaining equivalent results between an aov between-within repeated measures model and an lmer mixed model. ...
6
votes
1answer
3k views

Conflicting results of summary() and anova() for a mixed model with interactions in lmer+lmerTest

I recently came across what I think may be a problem in how the anova() function from the lmerTest packages computes its F-...
4
votes
2answers
3k views

Multiple comparisons with ANOVA including one between and one within-subject effect

I'm trying to look at multiple comparisons (across levels of my between subjects factor) for a model with one between-subject factor and one within-subject factor. I was trying to use TukeyHSD on an ...
6
votes
1answer
692 views

How is repeated-measures ANOVA a special case of linear mixed models?

In this comment @gung mentions that On a different note, I think it's fair to think of RM ANOVA as a special case of linear mixed models. and a subsequent comment concurs with this. I ...

15 30 50 per page