CMW posted on Tuesday, September 13, 2005 - 5:15 pm
I would like to fit a 2-level logistic regression model with one level-1 predictor. I would like the slope to be random, but the intercept to be fixed.
I think the code below fits a model with random intercept and random slope. By the way, is this code correct for specifying that the intercept has one predictor and the slope does not have any predictors, at level 2?
And to my main question: How can I make it so the intercept is predicted by "eap" but is fixed (i.e., no error at level 2)?
variable: names are subject t b eap; categorical = t; between = eap; within = b; cluster = subject;
analysis: type = twolevel random;
model: %within% slope | t on b; %between% t on eap; !t refers to random intercept slope; !no predictors of random slope
bmuthen posted on Tuesday, September 13, 2005 - 10:29 pm
Regarding your main question, you use statement on Between