Re: [R] Linear Mixed Effects

From: Dimitris Rizopoulos <>
Date: Wed 28 Jun 2006 - 17:23:56 EST

AFAIK lme(), by default, estimates the covariance between two or more random-effects, thus you do not have to specify anything. You're probably looking for something like:

fit <- lme(y ~ time * treat, random = ~ time | subject) fit

I hope it helps.


Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium

Tel: +32/(0)16/336899
Fax: +32/(0)16/337015

> Hi,
> I have implemented the lme in SAS and specified the random effects
> covariance structure as unstructured using the statement "random /
> type=UN"
> I want to specify same in R but not able to know how to do it.
> Can anyone please advise me on how to proceed.
> Thanks
> --
> Wills, Harry
> [[alternative HTML version deleted]]
> ______________________________________________
> mailing list
> PLEASE do read the posting guide!

Disclaimer: mailing list PLEASE do read the posting guide! Received on Wed Jun 28 17:22:10 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 28 Jun 2006 - 18:12:37 EST.

Mailing list information is available at Please read the posting guide before posting to the list.