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

Re: st: Re: Re: marginal effects and -svymlogit-


From   May Boggess <[email protected]>
To   [email protected]
Subject   Re: st: Re: Re: marginal effects and -svymlogit-
Date   05 Mar 2004 14:46:25 -0600

On Friday, Rafa De Hoyos wrote:

> svymlogit occ schooling experience region, b(1)
> mfx compute, nose
> 
> where occ is made out of 6 categories
> 
> The following error appeared:
> 
> too few variables specified
> occupation has 6 outcomes and so you must specify 6 new variables, or
> you can use the outcome() option and specify variables one at a time
> r(102);
> 

Rafa needs to specify which response outcome he would like marginal
effects of, as follows: 

 svymlogit occ schooling experience region, b(1)
 mfx compute, predict(p outcome(3)) nose

Usually when you don't specify the -predict- option in -mfx-, it just
uses the default -predict- option for the estimation command you are
following. But -mlogit- is unusual in that it doesn't have a default
predict option. Try the following:

 clear
 sysuse auto
 mlogit rep for
 predict p

and you will get the same type of message that Rafa did.

May



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