[R] Covariates in LME

From: Aberg Carl <kristoffer.aberg_at_epfl.ch>
Date: Thu, 27 Mar 2008 13:05:25 +0100

Im using lme to calculate a mixed factors ANOVA according to:

px_anova = anova(lme(dep~music*time*group, random = ~1|id, data = px_data))


dep is a threshold,
time is a repeated measures variable (2 levels) group is a between subjects variable (2 levels) id is a random factor (subject id)
music is a between subjects variable (2 levels) indicating if a person has a musical experience, or not

Musical experience is now decided by categorizing depending on the number of years practicing playing an instrument.

I would like to use the years of playing an instrument as a covariate instead of creating categories.

How can I do this in a simple way?

Thanks and have a nice day!


R-help_at_r-project.org 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 27 Mar 2008 - 12:09:10 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 27 Mar 2008 - 13:30:24 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.

list of date sections of archive