Dear Listers --
Thanks once again to Kit Baum, a new command is available on statalist: bayesmixedlogitwtp. This command works in much the same fashion as bayesmixedlogit (or in similar fashion to Arne Risa Hole's mixlogit and mixlogitwtp, for that matter). The chief difference is that bayesmixedlogitwtp allows the user to specify a price variable. The price variable serves to normalize other estimated coefficients in the mixed logit model. The hows and whys of the model are described by Scarpa et. al. (2008) and Hole and Kolstad (2012); other references are given in the help file.
Example of usage:
The above example (which borrows from Arne Risa Hole's help file for mixlogitwtp) assumes that contract, local, and wknown have fixed coefficients, and that rand and seasonal
have coefficients that vary at the gid level. Moreover, 4000 draws from the posterior are taken, the first 1000 are discarded, and then every fifth draw is kept. The draws are saved as draws.dta, and the drawing process is tuned to get an acceptance rate of .4,
bayesmixedlogitwtp requires installation of the package of mata routines amcmc (ssc install amcmc).
All the best,
Matt Baker
References:
Hole, A. R. and J. R. Kolstad. 2012. Mixed logit estimation of willingness to pay distributions: a comparison of models in preference and WTP space using data from a health-related choice experiment. Empirical Economics 42: 445-469.
R. Scarpa, M. Thiene, and K. Train. 2008. Utility in willingness to pay space: A tool to address confounding random scale effects in destination choice to the Alps. American Journal of Agricultural Economics 90: 994-1010.
*Thanks to Kenneth Train for suggesting the command, and for Arne Risa Hole for allowing use of his examples.
Thanks once again to Kit Baum, a new command is available on statalist: bayesmixedlogitwtp. This command works in much the same fashion as bayesmixedlogit (or in similar fashion to Arne Risa Hole's mixlogit and mixlogitwtp, for that matter). The chief difference is that bayesmixedlogitwtp allows the user to specify a price variable. The price variable serves to normalize other estimated coefficients in the mixed logit model. The hows and whys of the model are described by Scarpa et. al. (2008) and Hole and Kolstad (2012); other references are given in the help file.
Example of usage:
Code:
use http://fmwww.bc.edu/repec/bocode/t/traindata.dta bayesmixedlogitwtp y contract local wknown, group(gid) id(pid) /// price(price) rand(seasonal tod) draws(4000) burn(1000) thin(5) /// arater(.4) saving(draws) replace noisy
have coefficients that vary at the gid level. Moreover, 4000 draws from the posterior are taken, the first 1000 are discarded, and then every fifth draw is kept. The draws are saved as draws.dta, and the drawing process is tuned to get an acceptance rate of .4,
bayesmixedlogitwtp requires installation of the package of mata routines amcmc (ssc install amcmc).
All the best,
Matt Baker
References:
Hole, A. R. and J. R. Kolstad. 2012. Mixed logit estimation of willingness to pay distributions: a comparison of models in preference and WTP space using data from a health-related choice experiment. Empirical Economics 42: 445-469.
R. Scarpa, M. Thiene, and K. Train. 2008. Utility in willingness to pay space: A tool to address confounding random scale effects in destination choice to the Alps. American Journal of Agricultural Economics 90: 994-1010.
*Thanks to Kenneth Train for suggesting the command, and for Arne Risa Hole for allowing use of his examples.
Comment