Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Reason for mfx error is 'BECAUSE' ?


From   SamL <[email protected]>
To   Stata Listserve <[email protected]>
Subject   st: Reason for mfx error is 'BECAUSE' ?
Date   Thu, 1 Dec 2005 15:09:13 -0800 (PST)

Using Stata 8.2 I estimated a multinomial logit model as follows:

. mlogit marstat tvfact1, basecategory(6) ;

I then ran the mfx compute command, using several different versions of
syntax I found, obtaining the following result:

. mfx compute, predict(outcome(3)) ;
invalid 'BECAUSE'
r(198);

What am I doing wrong?  And, what kind of error occurs 'BECAUSE'? :-)

Full results are listed below, should anyone be interested (note--I use
";" to signal the end of a command, tvfact1 is an interval-level scale of
traditional values ranging from zero to one, and ultimately I want to
estimate models with more regressors; finally, thanks for any help you
can provide) :

. mlogit marstat tvfact1, basecategory(6) ;

Iteration 0:   log likelihood = -9129.6375
Iteration 1:   log likelihood = -8933.6588
Iteration 2:   log likelihood = -8932.2662
Iteration 3:   log likelihood = -8932.2653

Multinomial logistic regression                   Number of obs   =       6877
                                                  LR chi2(5)      =     394.74
                                                  Prob > chi2     =     0.0000
Log likelihood = -8932.2653                       Pseudo R2       =     0.0216

------------------------------------------------------------------------------
     marstat |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
MARRIED      |
     tvfact1 |   2.755563   .1691352    16.29   0.000     2.424064    3.087062
       _cons |   -1.07647    .088055   -12.22   0.000    -1.249055   -.9038857
-------------+----------------------------------------------------------------
NOT MARRIE~  |
     tvfact1 |  -.8979021   .2608498    -3.44   0.001    -1.409158    -.386646
       _cons |  -.7464122    .122721    -6.08   0.000     -.986941   -.5058833
-------------+----------------------------------------------------------------
WIDOWED      |
     tvfact1 |   2.361517   .8398351     2.81   0.005     .7154704    4.007564
       _cons |  -5.034124   .4667658   -10.79   0.000    -5.948968    -4.11928
-------------+----------------------------------------------------------------
DIVORCED     |
     tvfact1 |   1.020558   .2798024     3.65   0.000     .4721552     1.56896
       _cons |  -1.888785   .1431811   -13.19   0.000    -2.169415   -1.608155
-------------+----------------------------------------------------------------
SEPARATED,~  |
     tvfact1 |   1.697536   .3699212     4.59   0.000     .9725039    2.422568
       _cons |  -2.915832   .1966681   -14.83   0.000    -3.301295    -2.53037
------------------------------------------------------------------------------
(Outcome marstat==NEVER BEEN MARRIED is the comparison group)

. mfx compute, predict(outcome(3)) ;
invalid 'BECAUSE'
r(198);

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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