Hello, I am trying to estimate a mixed logit model in WTP space using mixlogitwtp by Arne Risa Hole. The documentation says that I should use the option id(varname) only when each individual performs several choices; i.e., the dataset is a panel.
What does the id option do? If I have a panel dataset, and I include id, does this mean that I'm including individual-specific random effects? If I have a panel dataset, and I exclude id, is this equivalent to assuming individuals have homogeneous preferences? Or is excluding id equivalent to assuming preferences are heterogeneous across individuals AND that each individual performs only one choice?
To be concrete, we can use the Train (2003) dataset:
What is the difference between the two models? And what is the proper way to describe them? (I think that they can both be described as mixed logit with error components?) Thanks very much.
What does the id option do? If I have a panel dataset, and I include id, does this mean that I'm including individual-specific random effects? If I have a panel dataset, and I exclude id, is this equivalent to assuming individuals have homogeneous preferences? Or is excluding id equivalent to assuming preferences are heterogeneous across individuals AND that each individual performs only one choice?
To be concrete, we can use the Train (2003) dataset:
Code:
use http://fmwww.bc.edu/repec/bocode/t/traindata.dta mixlogitwtp y, group(gid) price(price) rand(contract local wknown seasonal) mixlogitwtp y, group(gid) id(pid) price(price) rand(contract local wknown seasonal)
What is the difference between the two models? And what is the proper way to describe them? (I think that they can both be described as mixed logit with error components?) Thanks very much.
Comment