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
Drawing a graph with insignificant*coefficient!Hi, Can we draw a graph when some of our regression coefficients show up as insignificant? Specific…
xtreg results or margins to show correlation coefficent with each level of interacted factori'm trying to model the linear relation in a panek of continuous indep var X on continuous dep var Y…
generating DHS indiciatorCan someone guide me how to generate percentage of basic and limited sanitation service for nigeria …
How to write a command for nultiple condition with a character variable?Hi all, in my study, I want to study the subsample without observations from some countries without …
RMSEA 90% CI using Satorra-Bentler in sem CFAI am running a CFA using sem but am having trouble figuring out the output and possibly whether ther…
Subscribe to:
Post Comments (Atom)
0 Response to Factor variables with mlogit
Post a Comment