Announcement

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

  • plotting how dependent variable changes

    Hi, I've been struggling with the following assignment that my professor gave me.
    I ran a regression of wages on educ, educ^2, educ^3, and age.
    The question was "using the regression results, plot how predicted wages change with education, holding age at 35.

    However, I am quite confused which code should I use.
    Here's what I used:

    margin at (age=35)
    marginsplot
    However, it doesn't show a graph that I'd wished. What should I do?

  • #2
    Code:
    margins, at(age=35) over(educ)
    marginsplot
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment


    • #3
      Originally posted by Maarten Buis View Post
      Code:
      margins, at(age=35) over(educ)
      marginsplot
      it works! thanks !

      Comment

      Working...
      X