Dear Statalisters,
I am analyzing data from a DCE to obtain wta of animal welfare programs. Each farmer was confronted with 4 choice sets comprising 2 programs and 1 opt out. Each program has 5 attributes (3/4 levels) varying over alternatives. Data is in long format as required with levels coded as dummies. Since farmers have heterogeneous preferences I decided to use mixlogit to evaluate the the probability of acceptance depending on alternative-specific AND individual-specific variables.
First I tried only the alternative-specific variables and obtained significant standard deviations for all attributes. I included the attributes as random variable except the price.
mixlogit choice p, rand(attr1 attr2 attr3) id(Index) group (case) nrep(500)
Afterwards I wanted to estimate a model with individual-specific variables. Referring to Hole (2007) and Cameron & Trivedi (2009) this is possible by creating interaction terms between the attributes and characteristics of the decision maker or by creating interactions between alternatives and characteristics. Since I have unlabelled alternatives (1 and 2) I want to estimate the probability to choose alternative 1 OR 2 in relation to the opt out (3) depending on the farmers' characteristic.
The first try was to generate a dummy if alternative 1 or 2 was chosen and created an interaction term between the dummy and the characteristic, BUT the model achieved no convergence.
I recently worked with asclogit and used constraints to set alternative 1 and 2 equal. How is it possible to do this when using the mixlogit command?
I am really looking forward to helpful comments! Thank you so much in advance,
Julia
I am analyzing data from a DCE to obtain wta of animal welfare programs. Each farmer was confronted with 4 choice sets comprising 2 programs and 1 opt out. Each program has 5 attributes (3/4 levels) varying over alternatives. Data is in long format as required with levels coded as dummies. Since farmers have heterogeneous preferences I decided to use mixlogit to evaluate the the probability of acceptance depending on alternative-specific AND individual-specific variables.
First I tried only the alternative-specific variables and obtained significant standard deviations for all attributes. I included the attributes as random variable except the price.
mixlogit choice p, rand(attr1 attr2 attr3) id(Index) group (case) nrep(500)
Afterwards I wanted to estimate a model with individual-specific variables. Referring to Hole (2007) and Cameron & Trivedi (2009) this is possible by creating interaction terms between the attributes and characteristics of the decision maker or by creating interactions between alternatives and characteristics. Since I have unlabelled alternatives (1 and 2) I want to estimate the probability to choose alternative 1 OR 2 in relation to the opt out (3) depending on the farmers' characteristic.
The first try was to generate a dummy if alternative 1 or 2 was chosen and created an interaction term between the dummy and the characteristic, BUT the model achieved no convergence.
I recently worked with asclogit and used constraints to set alternative 1 and 2 equal. How is it possible to do this when using the mixlogit command?
I am really looking forward to helpful comments! Thank you so much in advance,
Julia
Comment