Announcement

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

  • Marginal effects in Sequential Logit Model

    Dear all,

    Please, I would like to know how to obtain marginal effects of each transition in a Sequential Logit Model.

    Thanks for your response.

    Best regards,

    ​​​​​​​Clarisse

  • #2
    margins will do that.

    It is hard to give a more detailed response, as you did not tell us what you did, what Stata told you in return, and why that is not what you wanted. It is also helpful to include example data with your question, see ssc descr dataex
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment


    • #3
      Dear Maarten,
      thanks for your response.
      The model is:
      seqlogit Y x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14, tree(2: 4 1 3, 4: 1 3, 1: 3) ofinterest(x5) over(x2) ro

      Iwould like to have the marginal effects of each transition:
      transition1: 2: 4 1 3
      transition2: 4: 1 3
      transition3 1: 3

      Thank you for your help.

      Best regards,
      Clarisse

      Comment


      • #4
        Did you try margins?

        Code:
        // open and prepare some example data
        use "http://fmwww.bc.edu/repec/bocode/g/gss.dta", clear
         
        recode degree 4=3
        label define degree 0 "lt high school" ///
                            1 "high school"    ///
                            2 "junior college" ///
                            3 "college", modify
        label value degree degre
        
        // estimate a model
        seqlogit degree south                  ///
            c.coh##c.coh if black == 0 ,       ///
            tree(0 : 1 2 3 , 1 : 2 3 , 2 : 3 ) ///
            ofinterest(paeduc)                 ///
            over(c.coh##c.coh)                 ///
            levels(0=9, 1=12, 2=14, 3=16)
        
        // marginal effects on the highest achieved level of education
        // measured in pseudo-years (as specified in the -levels()- option
        margins, dydx(*) predict(y)
        
        // marginal effect of passing the first transition
        margins, dydx(*) predict(trpr transition(1) choice(1))
        
        // marginal effect of passing the second transition
        margins, dydx(*) predict(trpr transition(2) choice(1))
        
        // marginal effect of passing the third transition
        margins, dydx(*) predict(trpr transition(3) choice(1))
        ---------------------------------
        Maarten L. Buis
        University of Konstanz
        Department of history and sociology
        box 40
        78457 Konstanz
        Germany
        http://www.maartenbuis.nl
        ---------------------------------

        Comment


        • #5
          Dear Maarten,

          OK, thank you for your reply and your help.

          Best
          Clarisse

          Comment


          • #6
            Dear all,

            I am making estimation of a sequential logit model. Please I have two questions:
            1- I would like to have the number of observations in each transition
            2- I would like to know the command to present results table of marginal effects of transitions and marginal effects on the highest achieved level. the commands esttab outreg2 or estout doesn't work in this case.


            Thanks for your response.

            Best regards,

            Clarisse

            Comment

            Working...
            X