[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: -margins- vs -adjust-

From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: -margins- vs -adjust-
Date   Wed, 4 Nov 2009 17:33:06 +0100


Works for me in both cases - whether -i.race- or -race- is specified...

webuse lbw, clear

logit low age lwt i.race smoke ptl ht ui
margins, dydx(*)

logit low age lwt race smoke ptl ht ui
margins, dydx(*)


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Jeph Herrin
Gesendet: Mittwoch, 4. November 2009 17:30
An: [email protected]
Betreff: st: -margins- vs -adjust-

After getting an error with -adjust-, I discovered that it
had been deprecated in version 11. The online help says:

"adjust has been superseded by margins.  margins can do everything
  that adjust did and more."

However, as far as I can tell, this is not the case. I could use
-adjust- with models that did not include factor variables; however,
with -margins- there seems to be no option to find marginal effects
for independent variables that are not i.vars.

Is this true? Or is there a way to fool -margins- into working with
non-factor variables? Apologies if this has come up before, I could
not find anything on the list or FAQ.

If it is true, this is a complete nusiance. I do not normally
include dichotomous variables as factor variables, and am not
interested in starting now. Moreover, I have estimation results
from -xtmelogit- models that ran for days; am I going to have
to re-estimate with -i.female- instead of -female- to get marginal
effects? (-adjust- gives errors). That, or calculate my own
marginal effects from scratch.


*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index