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: does -margins- work after -menbreg- or -mepoisson- in Stata 13?
From
"Ariel Linden, DrPH" <[email protected]>
To
<[email protected]>
Subject
Re: st: does -margins- work after -menbreg- or -mepoisson- in Stata 13?
Date
Mon, 12 Aug 2013 09:57:15 -0400
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
Date: Sun, 11 Aug 2013 19:28:39 -0500
From: Steve <[email protected]>
Subject: st: does -margins- work after -menbreg- or -mepoisson- in Stata 13?
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/