Dear all,
I conducted a discrete choice experiment with 5 attributes (hereafter regrouped under $att), price, and an ASC. Each attribute has between 3 to 5 levels.
Following an estimation using the 'mixlogit' command (written by Pr. Arne Risa Hole), I used the 'wtp' command (also developed by Pr. Hole) to compute willingness-to-pay values for each attribute level:
mixlogit chosen, rand(ASC $att price) group(HHID_card) id(HHID) nrep(500)
wtp ASC $att price, krinsky reps(10000)
matrix wtp1=r(wtp)
I am able to plot the distribution of the individual-level coefficients for each attribute level using:
mixlbeta att1, nrep(500) saving(att1_data) replace
use att1_data, clear
kdensity att1a
However, I would also like to plot the distribution of the individual-level WTP for each attribute level (see example on slides 23-24: https://www.sheffield.ac.uk/polopoly.../file/DCMD.pdf).
Does anyone have an idea how I could do this?
Many thanks in advance,
Laura
Related Posts with Distribution of the individual-level WTP following mixed logit model estimation
How to know whether laws affect dependent variables and paralell trend being satisfied following Chaisemartin and D'Haultfoeuille ?I am using a package called Code: did_multiplegt to run following Chaisemartin and D'Haultfoeuille …
how to merge data using different key variable names?I want to merge data between variable1 in dataset1 and variable2, variable3, variable4 in dataset2 r…
How to do pca for a group of variables?From my understanding, pca is a method to suppress a couple of variables to one variable standing fo…
How to know whether the paralell trend assumption is satisfied by using the method of Borusyak, (2021) in DiD ?Hi all, I am following the method of Borusyak, (2021) by running the Code: did_imputation package. …
High R-square in ppmlDear Statalist community, I would like to clarify few things about using ppml on gravity data. 1. …
Subscribe to:
Post Comments (Atom)
0 Response to Distribution of the individual-level WTP following mixed logit model estimation
Post a Comment