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: marginal effect after two-stage multinomial logit


From   xueliansharon <[email protected]>
To   [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index