[R] repeated measurements and lme

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[R] repeated measurements and lme

jonvaz
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

---------------------------------------------
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: [R] repeated measurements and lme

Brian Ripley
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, [hidden email] 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,                  [hidden email]
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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel