Re: [R] Help with lmer formula

2012-07-03 Thread Camila Mendes
Thanks Joshua for the clear explanation. I've previously posted in r sig mixed, but I got no response... :( Cheers, - Camila On Mon, Jul 2, 2012 at 9:31 PM, Joshua Wiley jwiley.ps...@gmail.com wrote: Hi Camila, In mixed equation form instead of multilevel, it would be: Y_it = gamma_00 +

[R] Help with lmer formula

2012-07-02 Thread Camila Mendes
Hey all - I am a newbie on mixed-effects models. I want to estimate the following model: Y_it = alpha_0t + alpha_1t*X_it + e_it alpha_0t = gamma_00 + u_0t alpha_1t = gamma_10 + gamma_11*W_it + u_1j Where Y is my outcome, X is my level-1 predictor, and W is my level 2 predictor. I am not sure

Re: [R] Help with lmer formula

2012-07-02 Thread Bert Gunter
Wrong list. Post to r-sig-mixed-models. -- Bert On Mon, Jul 2, 2012 at 6:47 PM, Camila Mendes cacamende...@gmail.comwrote: Hey all - I am a newbie on mixed-effects models. I want to estimate the following model: Y_it = alpha_0t + alpha_1t*X_it + e_it alpha_0t = gamma_00 + u_0t alpha_1t

Re: [R] Help with lmer formula

2012-07-02 Thread Joshua Wiley
Hi Camila, In mixed equation form instead of multilevel, it would be: Y_it = gamma_00 + gamma_10*X_it + gamma_11*W_it*X + (e_it + u_0t + u_1j*X) your code seems reasonable. Note that the random intercept and slope will be correlated in your specification (unstructured if you want, it is