Dear members,
I am using lclogit command for fitting latent class conditional logit models with the guide provided by Pacifico and Yoo (2013).
For the estimate result, There are 4 classes.
These may be theoretical questions,
1. The estimated posterior membership probability was obtained using the command below.
lclogit H, up
sum H*
lclogit G, cp
sum G*
gen b_cost = [choice1]cost*G1 + [choice2]cost*G2 + [choice3]cost*G3 + [choice4]cost*G4
...
...
And then, I got a table below.
Although I do not know whether an individual respondent belongs to a particular class q, can I understand that he or she belongs to the class with the largest posterior probability of membership?
qid 1 would be in class 1
qid 2 would be in class 4
qid 3 would be in class 4
...
2. I would like to do a sensitivity analysis.
I can find the choice probability by substituting the attribute level x for a hypothetical alternative.
By changing the price attribute level x_price, I can analysis the change in choice probability for price.
Similarly, I would like to see changes in choice probability for different levels of psychological variables by 5-Likert scale.
Can I change the psychological variable level z (1-> 2-> 3-> 4-> 5) to analysis the change in choice probability?
Have a nice day
Thank you
I am using lclogit command for fitting latent class conditional logit models with the guide provided by Pacifico and Yoo (2013).
For the estimate result, There are 4 classes.
These may be theoretical questions,
1. The estimated posterior membership probability was obtained using the command below.
lclogit H, up
sum H*
lclogit G, cp
sum G*
gen b_cost = [choice1]cost*G1 + [choice2]cost*G2 + [choice3]cost*G3 + [choice4]cost*G4
...
...
And then, I got a table below.
qid | G1 | G2 | G3 | G4 | Largest G |
1 | 0.967244166 | 7.50787E-12 | 9.67255E-14 | 0.032755834 | 1 |
2 | 4.47569E-11 | 9.46414E-11 | 3.36089E-15 | 1 | 4 |
3 | 9.43993E-05 | 8.21812E-09 | 6.81163E-07 | 0.999904911 | 4 |
4 | 1.02623E-09 | 2.65639E-11 | 1.70497E-15 | 0.999999999 | 4 |
5 | 0.999605016 | 3.42346E-12 | 9.3186E-10 | 0.000394983 | 1 |
6 | 1.66431E-13 | 1 | 2.95906E-18 | 9.18833E-15 | 2 |
7 | 2.24516E-13 | 1.02548E-10 | 7.90111E-15 | 1 | 4 |
8 | 2.40474E-09 | 2.09035E-09 | 0.996114539 | 0.003885457 | 3 |
Although I do not know whether an individual respondent belongs to a particular class q, can I understand that he or she belongs to the class with the largest posterior probability of membership?
qid 1 would be in class 1
qid 2 would be in class 4
qid 3 would be in class 4
...
2. I would like to do a sensitivity analysis.
I can find the choice probability by substituting the attribute level x for a hypothetical alternative.
By changing the price attribute level x_price, I can analysis the change in choice probability for price.
Similarly, I would like to see changes in choice probability for different levels of psychological variables by 5-Likert scale.
Can I change the psychological variable level z (1-> 2-> 3-> 4-> 5) to analysis the change in choice probability?
Have a nice day

Thank you
Comment