Announcement

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

  • Microeconomics Assingment

    Greetings, I have been asked to make a graph about the relation between age and average salary. As I'm trying to make a scatterplot, it comes as a multiple straight lines, as if it were a histogram. Is this the correct form?

    Click image for larger version

Name:	Screen Shot 2022-06-19 at 20.31.24.png
Views:	1
Size:	984.5 KB
ID:	1669997

    Command I used:

    scatter wage age, jitter (7)
    Last edited by Alejandro Tapia; 19 Jun 2022, 18:43.

  • #2
    Also, when making a graph for the mean of a variable against years of schooling, it actually comes only as a straight line, and it seems as if it were wrong.

    Click image for larger version

Name:	Screen Shot 2022-06-19 at 20.39.02.png
Views:	1
Size:	649.8 KB
ID:	1669999

    Commands I used:

    quietly: summarize fatheduc
    local average_fatheduc = r(mean)

    gen avfatheduc = `average_fatheduc'

    scatter educ avfatheduc

    Comment


    • #3
      We explicitly discourage questions from homework assignments.

      The first scatterplot looks quite ugly, but it's what you're looking for. I've no idea why the second graph looks as it does, presumably lots of coding errors. Remind me why you're graphing averages, again

      Comment


      • #4
        I didn't know about the assingment discouragement, my apologies. Regarding the second graph, I've been asked to create a graph about the relation of the average father education and education (years of schooling) itself. For this, I have to generate a variable that is the average or mean of the education of fathers.

        Comment

        Working...
        X