From ripley at stats.ox.ac.uk  Wed Feb 15 13:05:35 2006
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed, 15 Feb 2006 12:05:35 +0000 (GMT)
Subject: [Rd] [R] repeated measurements and lme
In-Reply-To: <200602151100.k1FB0I9d001870@morgan.ibg.uit.no>
References: <200602151100.k1FB0I9d001870@morgan.ibg.uit.no>
Message-ID: <Pine.LNX.4.64.0602151202270.22746@gannet.stats.ox.ac.uk>

Please do not post to multiple lists.  In this case R-help was more 
appropriate, but studying the posting guide was even more appropriate 
since you have not given enough information and the question is really 
statistical consulting not R.

On Wed, 15 Feb 2006, jonvaz at stud.ibg.uit.no wrote:

> I am trying to do a repeated measurement anova using an lme. I have the
>    following variables:
>    -ID, the identification of the individual
>    -trail, with 2 levels
>    -treatment, with 3
>    -time, measure 5 times the same individual
>    -VCL, the response variable
>    I tried the following in R,
>    within.gr<-groupedData(VCL~time|ID/treatment/time,data=within)
>    summary(lme(fixed=VCL~time*treatment,random=~1,data=within.gr))
>    I am not sure if it is correct at all. Can anyone help me? It will be very
>    helpful.
>    Sincerely,
>    Jonathan
>
> Vaz

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] [R] repeated measurements and lme
Prof Brian Ripley