Displaying 1 result from an estimated 1 matches for "w_it".
Did you mean:
_it
2012 Jul 03
2
Help with lmer formula
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 if I am doing it right. Is this the correct specification of
the formula?
model = lmer(Y ~ X + X:Y + ( X | ID), data = data)
Also, can you help me to write down the combined model formula? I tr...