[R] Obtaining Least Square Means with lme (mixed models)

Alex Bach alex.bach at irta.es
Tue Aug 31 20:52:14 CEST 2004


Hello,

I was wondering how one could obtain LSM for fixed factors in a 
mixed-effect model using lme. In other words, if I have model such as:

model<-lme(yield~period+treatment+period*treatment, 
data=data,random=~1|cow)

how can I get LSM for period, treatment and their interaction?

Thanks a lot!

Alex




More information about the R-help mailing list