Hi,
First I just want to say that I am learning Stata, so forgive me if I'm missing something that is seemingly obvious.
I am using survey data in my analysis for my dissertation, and I am trying to run the svy command with a subpop() and mlogit. Most of the variables in my model are categorical and some are continuous, so I am including the categorical variables as factor variables because I would also like to get the marginal effects for each level of these variables. However, when I try to run the mlogit, Stata acts as if it is running it, but it doesn't produce anything and doesn't give me an error, no matter how long I leave it to run. My dataset isn't huge, and most other commands run within a few seconds. What am I doing wrong? Below is the log with the code that I'm using. Stata just says that is is running mlogit on the estimation sample and then stops.
. use "C:\Users\Jpapa\Desktop\MEPS data SAS\masterdata", clear
.
.
. /*Ch 2 multinomial logistic regression*/
.
. svyset psuann [pweight=saqweight], strata(stratann) vce(linearized) singleunit(scaled)
pweight: saqweight
VCE: linearized
Single unit: scaled
Strata 1: stratann
SU 1: psuann
FPC 1: <zero>
.
.
. /*mlogit for SPD*/
. svy linearized, subpop(SPD): mlogit insstat i.yearind i.sex i.race i.hispyn i.region i.married
> i.education i.empstat i.natstat c.pcs c.mcs i.povcat c.ftotval, baseoutcome(1)
(running mlogit on estimation sample)
Thanks.
Related Posts with Factor variables with mlogit
By Patient ID subtract dates if observation (admission ID) condition is metHi all, I'm working on a fairly large hospital readmission dataset with 350 vars and 1.5M observati…
Variation within a groupHello To detect if the value of a numeric variable var_num changed within a group var_cat, I do this…
Graphing in a nested loopHi. I am trying to graph across two variables using a nested loop. My first variable refers to disea…
How can I do matching in case control study?Hello. I am doing my master´s degree Project, and it is about cost bacteria resistance disease (mor…
xtabond2 command help, PLEASEHi all! I am just getting into GMM (dynamic panel) for the first time, and I'm having much difficult…
Subscribe to:
Post Comments (Atom)
0 Response to Factor variables with mlogit
Post a Comment