Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Recover distribution SD using -mixlogitwtp-

    Hello,

    I am using -mixlogitwtp- in my research, but, although most likely simple, I am struggling to recover the WTP distribution SD. It follows a reproducible example.

    Code:
    clear all
    
    use https://www.stata-press.com/data/r18/inschoice
    
    gen mdeductible = -deductible
    mixlogitwtp choice, group(id) price(mdeductible) rand(premium)
    Which reports:

    Click image for larger version

Name:	fig.PNG
Views:	1
Size:	23.0 KB
ID:	1729753


    While I can recover the distribution's mean through _b[premium], I do not know how to recover the SD, as highlighted in the print above. I know I could recover it by using r(table), but this is unfeasible in my real case because I will add a lot of controls through a "for loop", hence constantly changing the parameter's position.

    Best regards,
    Pedro

  • #2
    mixlogitwtp is from SSC (FAQ Advice #12).

    Code:
    display _b[SD:premium]

    Comment


    • #3
      Thank you very much, Andrew Musau! Both for the answer and the FAQ Advice.

      Comment

      Working...
      X