Skip to content
Prev 131077 / 398506 Next

Help with a Loop

look at function lmList() from package 'nlme', e.g.,

# say 'dat' is you data.frame
library(nlme)
fm <- lmList(DrugLevel ~ Day | Participant, data = dat)
fm
summary(fm)


I hope it helps.

Best,
Dimitris

----
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
Web: http://med.kuleuven.be/biostat/
     http://www.student.kuleuven.be/~m0390867/dimitris.htm


----- Original Message ----- 
From: "stathelp" <ebballller1584 at yahoo.com>
To: <r-help at r-project.org>
Sent: Sunday, December 02, 2007 11:33 PM
Subject: [R] Help with a Loop
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm