Announcement

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

  • Storing each-equation marginal effects from a system estimation

    Hello everyone.
    I'm trying to compute and store the marginal effects of a 2-equations probit system estimation. As I said, I need to store the marginal effects (for each equation) for future plotting. The following it's my try, but after the first set of marginal effects (first equation), give an error message:

    Code:
    option dydx() not allowed
    r(198);
    This is my code:

    Code:
    eststo myeqs: ///
    suest myeq_1 myeq_2
        
    preserve
    margins, dydx(1.beta*) predict(equation(myeqs_y1)) post
    estimates store m1
    restore
    
    preserve
    margins, dydx(1.beta*) predict(equation(myeqs_y2))  post
    estimates store m2
    restore
    The idea is to avoid computing the whole system again to compute and store the second equation marginal effects.
    Thank you

  • #2
    See this recent thread: https://www.statalist.org/forums/for...hen-using-post

    Comment


    • #3
      Thank you Andrew Musau . It really helps.

      Comment

      Working...
      X