Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Bug in margins
From
William Buchanan <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: Bug in margins
Date
Sun, 1 Sep 2013 19:46:00 -0500
Check the help file again, in particular the -fixedonly- option. This was also recently discussed on the Statalist. The problem is due to the random effects.
Sent from my iPhone
On Sep 1, 2013, at 19:37, Sue Kay <[email protected]> wrote:
> Hi,
>
> I don't know whether it is due to a bug, or I am missing something, but I have some problems with margins command after I run my model with meqrlogit (with two random slopes).
>
> Even I add the prefix i. to the factor variables in my model, I still got the dreaded "default prediction is a function of possibly stochastic quantities other than e(b)" message (which I get only if I don't use i. prefix with the variable I try to calculate my margins after xtlogit)
>
> Here is a sample of what I do:
> meqrlogit y i.x1 i.x2 i.x3 x4 x5 x6 x7 || cluster: x1 x2
>
> And when I try to do this:
> margins x1
>
> I receive:
> default prediction is a function of possibly stochastic quantities other than e(b)
>
> I tried running my model using xtlogit (just with random intercept of course), and the margins command works without a problem.
>
> Am I missing something?
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/