Re: [R] How to Code Random Nested Variables within Two-way Fixed Model in lmer or lme

2011-09-30 Thread Helios de Rosario
Dave, your situation is clearer now. You wrote (see the full context at the end of the message): > From this, you will see that I have 4 control sites and 7 treatment > sites that are measured each week. All 13 locations have different > names, and Location is a random varaible. Is Location n

Re: [R] How to Code Random Nested Variables within Two-way Fixed Model in lmer or lme

2011-09-29 Thread Dave Robichaud
Hi again, Thank you very much for taking the time to respond to my question. I am sorry that my explanation was confusing. Please allow me to try to clarify. First, please ignore my attempts to define a lmer model. By putting forward my best first guess, which was clearly wrong, I have onl

Re: [R] How to Code Random Nested Variables within Two-way Fixed Model in lmer or lme

2011-09-29 Thread Helios de Rosario
Dear Dave, there are some inconsistencies in your explanation of the problem. You said your variables are: > CO is a continuous response variable, > > Week is a fixed categorical factor, > > Habitat is a fixed categorical factor, and > > Location is a random categorical factor nested within Hab