Skip to content
Prev 968 / 20628 Next

lme nesting/interaction advice

On 12/05/2008, at 4:52 AM, Federico Calboli wrote:

            
There is only one random effect, so where does the crossing come  
from ? The fixed effects vary across blocks, but they are fixed so are  
just covariates. For this type of data the usual model in lme4 is  
y~fixed1+fixed2+1|group and for lme split into fixed and random parts.
The problems seems to be that you want lme to work in the same way as  
an ANOVA table and it doesn't. The secret with lme and lme4 is to  
think about the structure of the data and describe with an equation.  
Then each term in the equation corresponds to part of the model  
definition in R.
I'm a bit lost with your data file, it has 4 covariates, which is more  
than enough for 2 fixed effects, assuming block is the grouping and y  
the outcome.

Ken

Thread (36 messages)

Federico Calboli lme nesting/interaction advice May 11 Andrew Robinson lme nesting/interaction advice May 11 Rolf Turner lme nesting/interaction advice May 11 Andrew Robinson lme nesting/interaction advice May 11 John Maindonald lme nesting/interaction advice May 11 David Duffy lme nesting/interaction advice May 11 Ken Beath lme nesting/interaction advice May 12 Federico Calboli lme nesting/interaction advice May 12 Federico Calboli lme nesting/interaction advice May 12 Federico Calboli lme nesting/interaction advice May 12 Federico Calboli lme nesting/interaction advice May 12 Andrew Robinson lme nesting/interaction advice May 12 Federico Calboli lme nesting/interaction advice May 12 Nick Isaac lme nesting/interaction advice May 12 toby909 at gmail.com lme nesting/interaction advice May 12 Federico Calboli lme nesting/interaction advice May 12 Doran, Harold lme nesting/interaction advice May 12 christian forkstam lme nesting/interaction advice May 12 Federico Calboli lme nesting/interaction advice May 12 Federico Calboli lme nesting/interaction advice May 12 Kevin Wright lme nesting/interaction advice May 12 Douglas Bates lme nesting/interaction advice May 12 Federico Calboli lme nesting/interaction advice May 12 Douglas Bates lme nesting/interaction advice May 12 Rolf Turner lme nesting/interaction advice May 12 Martin Henry H. Stevens lme nesting/interaction advice May 13 Douglas Bates lme nesting/interaction advice May 13 Rolf Turner lme nesting/interaction advice May 13 Kingsford Jones lme nesting/interaction advice May 13 Nathaniel Smith lme nesting/interaction advice May 13 Reinhold Kliegl lme nesting/interaction advice May 14 Nathaniel Smith lme nesting/interaction advice May 14 Kingsford Jones lme nesting/interaction advice May 14 Douglas Bates lme nesting/interaction advice May 14 John Maindonald lme nesting/interaction advice May 14 John Maindonald lme nesting/interaction advice May 15