[R] Why random item need grouping symbol '|' ? And why is there no '|' in fixed item in lme?

From: <fanzhang2_at_gmail.com>
Date: Wed 03 May 2006 - 03:34:07 EST


Hi everyone,

What's the difference between the following two linear mixed models? Supposed productivity scores is decided by three types of machines as used by six different workers.

scoreij=workeri+machinej+eij i=1,2,...6 j=1,2,3

machine = as.factor(machine)
worker = as.factor(worker)
lme(fixed=score~machine, data=example1, random=~1|worker)

My question is what is the difference between the above lme and the following lme? Why is there no '|' in fixed item in lme?

lme(fixed=score~machine, data=example1, random=~worker)



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed May 03 03:37:42 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 03 May 2006 - 04:10:27 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.