Dear all,
I'm using Stata 14.
I'm trying to compare the fit of two mixed effects models estimated with robust standard errors.
I know that lrtest doesn't work when the models are estimated with robust standard errors. Below I provide a code that exemplifies this:
(Where performance captures some performance metric 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), behavior is a factor variable that captures four behavioral patterns from my sample of participants (e.g., pattern A, B, C, D) and id identifies my participants)
Stata would show the following error:
I know I can make lrtest run by using the option force:
But I understand that this approach could be questionable.
If I estimate those two models without robust standard errors and compare their fit with lrtest, the command works fine.
Is there a command analogous to lrtest or a set of commands that allow to compare the fit of two mixed effects models estimated with robust standard errors?
Thanks!
I'm using Stata 14.
I'm trying to compare the fit of two mixed effects models estimated with robust standard errors.
I know that lrtest doesn't work when the models are estimated with robust standard errors. Below I provide a code that exemplifies this:
Code:
mixed performance i.profit i.feedback i.behavior || id: R.profit, vce(r) estimates store A mixed performance i.profit i.feedback || id: R.profit, vce(r) estimates store B lrtest A B
Stata would show the following error:
Code:
LR test likely invalid for models with robust vce r(498);
Code:
lrtest A B, force
If I estimate those two models without robust standard errors and compare their fit with lrtest, the command works fine.
Is there a command analogous to lrtest or a set of commands that allow to compare the fit of two mixed effects models estimated with robust standard errors?
Thanks!
Comment