Announcement

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

  • How to find the marginal effect of interaction terms

    After evaluating the time invariant variables using the xtseqreg command (equation is ln(y)=b0+b1X1+b2(X1)^2+b3*X1*X2+other time variable), how do I find ∂y/∂X1 with the manual setting command? What is Stata's command to find the marginal effect and elasticity?

  • #2
    This is the subforum discussing Mata, the matrix language inside Stata. The correct place for your question is the General forum. Please repost your question there. Also clarify your question, as right now the title of your post is inconsistent with the body: you are asking about a marginal effect of x1 not the interaction effect. Also what marginal effect are you looking for: by allowing for non-linearity (quadratic) and the interaction effect there is no longer one marginal effect.
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment


    • #3
      Thank you so much

      Comment


      • #4
        Originally posted by Maarten Buis View Post
        This is the subforum discussing Mata, the matrix language inside Stata. The correct place for your question is the General forum. Please repost your question there. Also clarify your question, as right now the title of your post is inconsistent with the body: you are asking about a marginal effect of x1 not the interaction effect. Also what marginal effect are you looking for: by allowing for non-linearity (quadratic) and the interaction effect there is no longer one marginal effect.
        Thank you so much

        Comment

        Working...
        X