Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: marginal effect after two-stage multinomial logit


From   xueliansharon <xuelianstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: marginal effect after two-stage multinomial logit
Date   Wed, 4 May 2011 18:08:47 -0700 (PDT)

Dear all,

I want to estimate a following two-stage multinomial logit model (the
dependent variable has 3 categories) with an endogenous variable, and get
the marginal effects. However, the following program doesn't work. I always
get some error message as "insufficient observations to compute bootstrap
standard errors
no results will be saved ".

Could you please check the problems for me ? Thank you very much!

The following is my program:

webuse sysdsn1, clear
program myprog
version 11.1

//stage 1
regress ppd  male nonwhite i.site age
predict double ppdhat, xb

//stage 2
quietly mlogit insure male nonwhite i.site ppdhat
margins, dydx(*) predict(outcome(1))
margins, dydx(*) predict(outcome(2))
margins, dydx(*) predict(outcome(3))

end

bs, reps(1000) seed(1014): myprog


Sharon

--
View this message in context: http://statalist.1588530.n2.nabble.com/marginal-effect-after-two-stage-multinomial-logit-tp6332874p6332874.html
Sent from the Statalist mailing list archive at Nabble.com.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index