I am trying to run the mixed command and set it to have a fixed intercept and random slopes. In other words, I am starting with this:
and I want to modify it so that the slopes of a and b are allowed to vary but the intercept is fixed. I found an old thread on this, but in that thread "ID:" was taken out and replaced by a:, which does not tell Stata what the nesting structure is. So I think that solution is probably wrong.
Code:
mixed y a b || ID: a b
Comment