Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Sue Kay <professors@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: Bug in margins |
Date | Tue, 03 Sep 2013 09:48:07 -0700 |
Thanks both of you,I must have missed that one when I checked the statalist. I still cannot see it in the help file though, or maybe I am misinterpreting some of the description.
Sometimes I just wish the help files are a little more clear for a layman like me.
On 9/1/13 7:10 PM, Ariel Linden, DrPH wrote:
See the response that was given to me when I posted the same question last month http://www.stata.com/statalist/archive/2013-08/msg00451.html From William Buchanan <william@williambuchanan.net> To "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> 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 <professors@gmail.com> wrote:Hi, I don't know whether it is due to a bug, or I am missing something, but Ihave 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 gotthe 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 otherthan e(b)I tried running my model using xtlogit (just with random intercept ofcourse), 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/