Hi everyone
I have an error message that I don't really know how to interpret.
I want to estimate a multinomial logit model and afterwards I would like to estimate average marginal effects.
This is basically how my data looks:
Not a huge data set, reasonable distributions of values, not too many categories, I would think.
Running the model also causes no problems:
Then I'd like to have AME's and so I run -margins- right after -mlogit-:
How can that be?
My Stata version is
Thanks so much
KS
I have an error message that I don't really know how to interpret.
I want to estimate a multinomial logit model and afterwards I would like to estimate average marginal effects.
This is basically how my data looks:
Code:
. tab y x | x y | No Yes | Total -----------+----------------------+---------- Cat 1 | 675 269 | 944 Cat 2 | 816 202 | 1,018 Cat 3 | 1,827 282 | 2,109 -----------+----------------------+---------- Total | 3,318 753 | 4,071
Running the model also causes no problems:
Code:
. mlogit y x Iteration 0: Log likelihood = -4177.7065 Iteration 1: Log likelihood = -4129.9641 Iteration 2: Log likelihood = -4129.282 Iteration 3: Log likelihood = -4129.2818 Multinomial logistic regression Number of obs = 4,071 LR chi2(2) = 96.85 Prob > chi2 = 0.0000 Log likelihood = -4129.2818 Pseudo R2 = 0.0116 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- Cat_1 | x | .9485219 .0963971 9.84 0.000 .7595871 1.137457 _cons | -.9957179 .0450425 -22.11 0.000 -1.084 -.9074362 -------------+---------------------------------------------------------------- Cat_2 | x | .4723767 .1013382 4.66 0.000 .2737575 .6709959 _cons | -.8060162 .0421051 -19.14 0.000 -.8885406 -.7234918 -------------+---------------------------------------------------------------- Cat_3 | (base outcome) ------------------------------------------------------------------------------
Code:
. margins, dydx(x) predict(outcome(2)) system limit exceeded - see manual r(1000);
My Stata version is
Code:
. about StataNow/MP 18.5 for Windows (64-bit x86-64) Revision 26 Feb 2025 Copyright 1985-2023 StataCorp LLC Total physical memory: 16.00 GB Available physical memory: 2.46 GB Stata license: Unlimited-user 4-core network, expiring 14 Dec 2025
KS
Comment