[R] repeated measures regression

From: John Christie <jc_at_or.psychology.dal.ca>
Date: Thu, 17 May 2007 13:05:50 -0400

How does one go about doing a repeated measure regression? The documentation I have on it (Lorch & Myers 1990) says to use linear /
(subj x linear) to get your F. However, if I put subject into glm or
lm I can't get back a straight error term because it assumes
(rightly) that subject is a nominal predictor of some sort.

In looking at LME it seems like it just does the right thing here if I enter the random effect the same as when looking for ANOVA like results out of it. But, part of the reason I'm asking is that I wanted to compare the two methods. I suppose I could get it out of aov but isn't that built on lm? I guess what I'm asking is how to calculate the error terms easily with lm.



R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 17 May 2007 - 17:14:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 May 2007 - 05:31:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.