Announcement

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

  • gsem mlogit margins

    Hi All,
    I am using gsem for multilevel mlogit. I want to use margins command afterwards. I am using the option predict(mu fixedonly) and it is working but I am unable to specify a particular outcome so it gives me a default outcome which has smallest value in the codes of outcomes. e.g., my command line reads following

    margins, predict(mu fixedonly) at( dishus=(0 1) src=3 oneson=1 disoth=1 groupmem=1 tv=1 mediafp=1 newwealth=1 wwork=1) atmeans

    but I am unable to specify the outcome of my own choice. What is the way to specify the outcome of our choice.

    Thanks

    zak
    Last edited by zakaria; 18 Apr 2014, 13:16.

  • #2
    dear zak,

    you can pass the desired outcome to margin in the predict option. In your case this would probably be something like this:

    margins, predict(mu fixedonly outcome(DEPVAR 2)) at( dishus=(0 1) src=3 oneson=1 disoth=1 groupmem=1 tv=1 mediafp=1 newwealth=1 wwork=1) atmeans

    see -help gsem_predict- for more details.

    best

    Klaus

    Comment


    • #3
      following specification works. Thanks

      margins, predict(fixedonly outcome(2.chosen))

      Regards
      Zak

      Comment

      Working...
      X