Hello. I usually use Matlab for my own research but am using Stata for a student project, and I'm finding it harder than I thought to do pretty basic stuff. I'd really appreciate it if someone could answer this admittedly very elementary question.
I'm using a data set (from the Current Population Survey) with about 140,000 observations. I'd like to create a graph with age on the x-axis, and the average earnings of that age group on the y-axis.
There are a couple of steps I'd like to take after that, like doing different graphs for different education levels, but my guess is that such extensions won't be too hard once I have the basic scheme right.
In a way, what I'd really like to do is create a much smaller data set that just contains the different ages in the first column, and then the mean earnings for each age in the second column. Actually, I've even done this, using the command
"mean totalearn, over(age)"
But that just gives a table that Stata prints in plain text. I don't know how to turn it into a graph, or how to export it properly to some other graph-making program like Excel.
Thank you!
James
I'm using a data set (from the Current Population Survey) with about 140,000 observations. I'd like to create a graph with age on the x-axis, and the average earnings of that age group on the y-axis.
There are a couple of steps I'd like to take after that, like doing different graphs for different education levels, but my guess is that such extensions won't be too hard once I have the basic scheme right.
In a way, what I'd really like to do is create a much smaller data set that just contains the different ages in the first column, and then the mean earnings for each age in the second column. Actually, I've even done this, using the command
"mean totalearn, over(age)"
But that just gives a table that Stata prints in plain text. I don't know how to turn it into a graph, or how to export it properly to some other graph-making program like Excel.
Thank you!
James
Comment