Announcement

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

  • Using Mtable

    Hello,

    I want to generate predicted probabilities after running the multinomial logit using mtable command. I want the predicted probabilities across the variable AGE. I find that the general syntax is mtable, atmeans at(AGE=x). However since i want this predicted probability for all values of AGE is there a way to do it at one go ?That is instead writing the command again and again for different values of AGE can I generate it with a single command?

    Please help!

  • #2
    You should say where mtable comes from. I assume it is part of Long and Freese's spost13 package. If not, please say where you really got it.

    Try something like

    Code:
    mtable, atmeans at(age = (20(1)74))
    I doubt that you really want/need it for every possible value of age, so you might prefer

    Code:
    mtable, atmeans at(age = (20(10)74))
    For more ideas, see

    https://www3.nd.edu/~rwilliam/stats3/Margins05.pdf
    -------------------------------------------
    Richard Williams, Notre Dame Dept of Sociology
    StataNow Version: 19.5 MP (2 processor)

    EMAIL: [email protected]
    WWW: https://www3.nd.edu/~rwilliam

    Comment


    • #3
      Hi Richard,

      Thanks ! Yes it comes from Freese and Long SPost 13. I, in fact, found a way. It goes like this mtable, atmeans by(AGE)

      Comment

      Working...
      X