cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
ProfCorrow
Level I

ANOVA with multiple repeated measures factors

I am new to JMP and having a hard time running a repeated measures ANOVA.  The problem is that I have two factors and BOTH are repeated measures.  All of the examples find online show repeated measures ANOVA with one between subjects factor and one within.  Can anyone help? Here is a description.  

 

One group of subjects.  This is a face recognition task with eye tracking.  The dependent variable is the duration of looking time.  

Repeated measures factor 1: Face Half (upper face vs lower face)

Repeated measures factor 2: Phase (Learning, Target, and Distractor)

 

In short, we are interested in seeing if subjects look longer to the upper or lower face and also if their duration of looking time differs across phase (when the learn the face, for target faces, or for distractor faces).  Plus the interaction. 

 

Help! 

18 REPLIES 18
ProfCorrow
Level I

Re: ANOVA with multiple repeated measures factors

Ok, I'm with you on your first point. I can see how it would take a long time for these methods to be updated and become mainstream.

Regarding this comment, "if one used a traditional MANOVA for a repeated measures analysis, the subject is a random effect." Can I ask my question a different way perhaps? If I use the JMP add-in for full factorial repeated measures ANOVA to do my analysis (as I did at the beginning of this thread), would subject be treated as a fixed or random effect?

If fixed, then I understand your comment about this method being "behind the times." If random, then what is the difference between what the add-in does and running the analysis using this method (http://www.jmp.com/support/notes/30/584.html) with the univariate split-plot approach? The results come out a bit different. My only conclusion is that the add-in treats subject as a fixed effect and the second method treats it as random.

I am also a bit thrown by JMP's use of the term "MANOVA" as I always thought of MANOVA as involving two dependent variables (http://online.sfsu.edu/efc/classes/biol710/mā€¦), whereas I only have one DV. I take it JMP calls it MANOVA but if you enter only on DV, then it really is an ANOVA you are running?

Sorry for the long string of questions. I hope this thread will be useful to someone with the same questions as me in the future. And I am learning a lot in the process!

Re: ANOVA with multiple repeated measures factors

The add-in treats the subject effect as fixed, which is why you get the same results as you did with SPSS.

I believe that the add-in was created to reproduce the SPSS style of analysis for users who expect results when subject effects are treated as fixed. The note from the JMP Knowledge Base treats subject effects as random.

Repeated measures is a common study design that can use MANOVA. You measure the response of the same subject at multiple times. You can include one or more factors and covariates. The subject effect is again treated as random.

Sorry but it is difficult to keep up with you. I am having muliple and deep computer prolems - at the BIOS level!

ProfCorrow
Level I

Re: ANOVA with multiple repeated measures factors

This solves it for me. Thank you so much for all of your time and effort. I understand now.

Sincerely,
Sherryse
julian
Community Manager Community Manager

Re: ANOVA with multiple repeated measures factors

Hi All,

I just wanted to clarify something about the full factorial repeated measures add-in. That add-in *does not* treat subject as a fixed effect. The model generated by the add-in treats subject as a random effect, and models all interactions with subjects as random (random slopes by subject). If you launch the model dialog after running the model (or from the add-in directly) you can see how this structure would be defined in the standard Fit Model dialog. Results from analyses set up with this add-in will certainly differ from treating subjects as a fixed effect (which is, of course, not recommended).

Julian

 

ProfCorrow
Level I

Re: ANOVA with multiple repeated measures factors

Thanks Julian. I've done a bit of digging into linear mixed modeling since then and have clarified this issue a lot. For those reading this post who have similar questions, consult Andy Field's Discovering Statistics 4th ed (Chapter on Multilevel Linear Models) as a starting point. It now clear to me that SPSS and the JMP add-in are not treating subject as a fixed effect when running an ANOVA. However, if you suspect that there may be a correlation between your scores within a subject, then subject should be modeled as a random effect using linear mixed modeling . . . or some other test that would be appropriate. If your within subjects measures are not correlated, then an ANOVA should be sufficient. If anyone feels I am wrong on this point, please correct me!

Re: ANOVA with multiple repeated measures factors

The statistics instructors in SAS Education recommend this book:

Stroup, Walter W. (2013) Generalized Linear Mixed Modes: Modern Concepts, Methods and Applications, CRC Press, Boca Raton, FL, ISBN 978-1-4398-1512-0 (hardback)

ProfCorrow
Level I

Re: ANOVA with multiple repeated measures factors

P.S. Thanks also for your comment above. I understand what you are describing in principle, but am confused on the notion that I always thought that a standard repeated measures ANOVA treated subject as a random effect already. As a fellow stats friend recently put it: "I am unsure of why SPSS would *ever* treat subject as a fixed effect. I am pretty sure it is treating subject as a random effect. Treating subjects as random comes from the idea of random sampling, where we assume that the variance of scores in the subjects is a true reflection of error variance in the population - that allows us to generalize to the population, rather than to just the N people in our sample. Treating subjects as fixed vs random factors generally changes the way we construct F-ratios. The tests you get from either program should be using the error term as the denominator in the F-ratio. So for example the F-ratio for face half should be MS(face half)/MS(error), with 1, 2x3x(N-1) degrees of freedom; F-ratio for phase should MS(phase)/MS(error) with 2, 2x3x(N-1) degrees of freedom; and the F-ratio for the interaction should be MS(interaction)/MS(error) with 2, 2x3x(N-1) degrees of freedom. Whatever gives you that is doing it right!"

Re: ANOVA with multiple repeated measures factors

OK, so it sounds like you are convinced that subject, as part of the experimental unit, should be a random effect. It is implicitly a random effect in the MANOVA. It is explicitly a random effect in the mixed effects model.

There are situations in which the block effect should be treated as a fixed effect but they are nothing like your study.

Kevin_Anderson
Level VI

Re: ANOVA with multiple repeated measures factors

Just to chime in...

 

If the investigator chose four subjects and wanted the interpretation of the analysis to apply to ONLY those four subjects, the subject factor should be FIXED.

 

If the investigator chose four subjects at random from the population of all subjects in order to generalize the interpretation of the analysis to that population, the subject factor should be RANDOM.

 

I would also recommend Milliken, G.A., Johnson, D.E(1997); Analysis of Messy Data, Volume 1: Designed Experiments; Chapman & Hall; pp 322-350.