Dear all,
I’m using STATA 14.
As far as I understand, I can’t run the command mixed with random slopes for several factor variables. I can run something like:
where decision captures some behavior from my sample of participants,
profit is a factor variable that captures three profit levels (e.g., low, medium, high),
feedback is a factor variable that captures three feedback types (e.g., simple, normal, complex),
and id identifies my participants.
But I can’t run something like:
An error like the following would appear when running the previous command:
R.profit R.feedback invalid level specification
r(198);
Among the stuff I have read, I saw a suggestion about creating indicator variables to bypass this problem. Based on that, and using the command xi, I create them, something like:
I’m not really sure about how I should run the mixed effects model. This is my try:
It runs, but I don’t know if it makes sense. Is this approach correct?
Thanks!
I’m using STATA 14.
As far as I understand, I can’t run the command mixed with random slopes for several factor variables. I can run something like:
Code:
mixed decision i.profit i.feedback || id: R.profit
profit is a factor variable that captures three profit levels (e.g., low, medium, high),
feedback is a factor variable that captures three feedback types (e.g., simple, normal, complex),
and id identifies my participants.
But I can’t run something like:
Code:
mixed decision i.profit i.feedback || id: R.profit R.feedback
R.profit R.feedback invalid level specification
r(198);
Among the stuff I have read, I saw a suggestion about creating indicator variables to bypass this problem. Based on that, and using the command xi, I create them, something like:
Code:
xi i.profit xi i.feedback
Code:
xi: mixed decision i.profit i.feedback || id: i.profit i.feedback
Thanks!
Comment