You are not logged in. You can browse but not post. Login or Register by clicking 'Login or Register' at the top-right of this page. For more information on Statalist, see the FAQ.
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?
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.
Commands I used:
quietly: summarize fatheduc
local average_fatheduc = r(mean)
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
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