Dear all,
I am running a rank-ordered probit model using the cmp command. The dependent variable is travellers' preference for different time use type. Time use types are divided into five categories. Traveller answered the possibility of engaging in these activities with 1,2,3,4, and 5, with 1 indicating the most likely. There are ties in the ranking data. The cmp command is the following:
cmp (rest: timeuse1 = independent variables) (work: timeuse2 = independent variables) (nodo: timeuse3 = independent variables) (soc: timeuse4 = independent variables)(lei: timeuse5 = independent variables), ind((9 9 9 9 9)) tech(dfp) ghkd(1000,type(halton)) rev constr(5/8)
I am trying to obtain the probability of given outcome after cmp. For example, the predict command is the following:
* predict timeuse1=1,2,3,4,5, using (default) first equation
. predict pruse11, pr outcome(1)
. predict pruse12, pr outcome(2)
. predict pruse13, pr outcome(3)
. predict pruse14, pr outcome(4)
. predict pruse15, pr outcome(5)
No matter what I define as a given outcome, the calculated probability is the same, which seems to be counterintuitive.
Then, the predict command is the following:
* Predict all outcomes, all equations.
.predict prD*, pr
I get five probability values. And since there are 5 possible ranked values for each dependent variable, I think there should be 25 (=5×5) probability values.
Did I misunderstand the probability calculated by the rank-ordered probit model, or was the code wrong? If so, please correct my mistake
Thank you in advance.
Related Posts with cmp command for rank-ordered probit model
xtstreg?Dear All, I have weekly data on the last year of life of a sample of decedents (all die in week 52, …
graph-legend order: how to lay 5 legends in first column, while 2 legends in the second column?Dear all, I had graphed two categories of y (two y-axes) towards the same x in one graph. The left …
How to export result to different excel sheets in an excel files?Hi all, I want to export different results to different sheets of one excel file rather than to cre…
Coding on StataHello, I am a new Stata learner and having some difficulty coding. Say if blood pH was recorded for …
Esttab: rearrange variables -- option order not allowedI am trying to rearrange the order in which variables appear in my table. But for some reason, the e…
Subscribe to:
Post Comments (Atom)
0 Response to cmp command for rank-ordered probit model
Post a Comment