Bookmark and Share

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]

st: Re: does -margins- work after -menbreg- or -mepoisson- in Stata 13?


From   Steve <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Re: does -margins- work after -menbreg- or -mepoisson- in Stata 13?
Date   Mon, 12 Aug 2013 11:38:52 -0500

Thanks for the feedbackAriel.  In your case you could go to -mixed- and get what you were looking for.

So, I'm guessing, with no response from anyone else, that there's no way to use -margins- with any of
the new-me- models.

If no one can come up with aworkaround, maybe  that should be on the wish list for Stata 14,
only 2+ years away.

Steve

__________________________________________________________________________
This won't make you feel any better, but I receive the same error when using
-meglm-

webuse pig
meglm weight i.week || id:
margins

default prediction is a function of possibly stochastic quantities other
than e(b)
r(498);


I spent an entire day trying to track down the post-estimation commands for
margins after meglm, to no avail.

Substituting -mixed- for -meglm- works fine

webuse pig
mixed weight i.week || id:
margins
Ariel



On 8/11/2013 7:28 PM, Steve wrote:
I'm trying to use -margins- after -menbreg-.

No matter how I set up the -margins- command, I receive the following error message:

default prediction is a function of possibly stochastic quantities other than
e(b)
r(498);

Here's just one example of the syntax I've used:
     margins x1, at(x2=(-1(.1)3))
where
    x1 = dichotomous variable
and
    x2 =  continuous variable

Both variables are in the -menbreg- model.

I have the same problem after mepoisson.

I know that -margins- works after -mixed- in Stata 12.

Am I neglecting something or will -margins- not work after -menbreg- and -mepoisson- in Stata 13? Are there other new mixed commands in Stata 13 after which -margins- will not work?

Steve Rothenberg
Instituto Nacional de Salud Pública
Cuernavaca, Morelos, México



*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index