Re: [R] lmer with random slopes for 2 or more first-level factors?

2009-08-19 Thread ONKELINX, Thierry
Dear Jason, Both models have a correct syntax. Although I would write the last model rather as lmer(DV ~ IV1 + IV2 + (1|Subject) + (IV1 - 1| Subject) + (IV2 - 1| Subject)) The only difference is indeed the correlation between the random effects. The random effects in the model I wrote are all

Re: [R] lmer with random slopes for 2 or more first-level factors?

2009-08-19 Thread Jonathan Baron
Since nobody has answered yet, let me try. I'm not 100% sure. (So why bother? To check my own understanding.) On 08/18/09 20:47, Jason R. Finley wrote: I have data from a design in which items are completely nested within subjects. Subject is the only second-level factor, but I have

[R] lmer with random slopes for 2 or more first-level factors?

2009-08-18 Thread Jason R. Finley
I have data from a design in which items are completely nested within subjects. Subject is the only second-level factor, but I have multiple first-level factors (IVs). Say there are 2 such independent variables that I am interested in. What is the proper syntax to fit a mixed-effects