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
Problem adding boldface to -text- in graphI am unable to transfer clipboard from the server, so I will give an example. I have some text I to…
Combining values for multicode response variables to create a new cumulative variableI need to create a total variable that will sum the code frequencies from each response variable. I…
collapse municipality-level data and calculating a ratioDear Statalisters, For better understanding and learning STATA, I would like to ask you the followi…
What is the order of autocorrelation?I have the following equation: Code: lpowt=β1+β2lprot+β3t+β4t2+ut Where: lpow=natural logarithm for…
how to use the value of variable A in last year for variable B in this yearHi everyone, I would ike to create a new variable whose value equals to the value of another variab…
Subscribe to:
Post Comments (Atom)
0 Response to Factor variables with mlogit
Post a Comment