Dear all,
I am running a discrete choice model using lclogit2 and lclogitml2. I tested the model and decided to run it with 3 classes and to make the price-coefficient class-invariant or in other words, to include price as homogeneous coefficients that is identical across classes.
I figuered out that it is not possible to use the postestimation command lclogitwtp2 when using the above described specification.
Error:
lclogitwtp2, cost(price) post
__000002 not found
I tried to implement a constraint
, which, however, only constrains the price-coefficient of the first and second class to be class-invariant.
I also tried to implement 2 constraints
, which also did not work.
The entire code applied is the following
Is there a proper way to estimate the WTP when using a latent class model with 3 classes and a class-invariant price coefficient using the constraint option?
Thanks in advance!!
Maike
I am running a discrete choice model using lclogit2 and lclogitml2. I tested the model and decided to run it with 3 classes and to make the price-coefficient class-invariant or in other words, to include price as homogeneous coefficients that is identical across classes.
I figuered out that it is not possible to use the postestimation command lclogitwtp2 when using the above described specification.
Error:
lclogitwtp2, cost(price) post
__000002 not found
I tried to implement a constraint
Code:
constraint 1 [Class1]price = [Class2]price = [Class3]price
I also tried to implement 2 constraints
Code:
constraint 1 [Class1]price = [Class2]price = [Class3]price
Code:
constraint 2 [Class1]price= [Class3]price
The entire code applied is the following
Code:
lclogit2 choice, rand(price rate_2 strike_level channel_radio channel_randp ///
certification_gov certification_ngo ASC) group(idchoice) id(id0) nclasses(3)seed(1234567890)
matrix start3 =e(b)
constraint 1 [Class1]price = [Class2]price = [Class3]price
lclogitml2 choice, rand(price rate_2 strike_level channel_radio channel_randp ///
certification_gov certification_ngo ASC) group(idchoice) id(id0) nclasses(3) ///
from(start3)constraint(1) seed(1234567890)
lclogitwtp2, cost(price) post
Thanks in advance!!
Maike

Comment