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: Bug in margins


From   roland andersson <[email protected]>
To   [email protected]
Subject   st: Bug in margins
Date   Fri, 30 Aug 2013 17:39:35 +0200

I am analysing a logistic regression model, binary outcome. I want to
analyse the adjusted proportion of the outcome for a binary (0/1)
covariate.

I run the logistic model followed by margins
. logistic dod30dgr  i.lapscopiintent alder aldersq........
. margins lapscopiintent

I get an error
'lapscopiintent' not found in list of covariates
r(322);

If I put i. before the binary variable I am interested in

. logistic dod30dgr  i.lapscopiintent alder aldersq................
. margins lapscopiintent

Predictive margins Number of obs   = 166811
Model VCE    : OIM

Expression   : Pr(dod30dgr), predict()

Delta-method
Margin   Std. Err. z P>z [95% Conf. Interval]
lapscopiin~t
0     .0015466   .0000985 15.70 0.000 .0013535 .0017397
1     .0011487   .0002518 4.56 0.000 .0006552 .0016421

I assume this is a bug?

Roland Andersson
*
*   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