Hello!
I have data from a Survey since 1976.
What I am trying to do is get to see how education for different race groups evolved over Time
Educ is a continuous variable
So I try to generate mean education and see how this evolved over time for different race group.
However when I do the following code I get the attached file

egen meaneduc=mean(educ)

. graph twoway line mean educ, by(race)

. graph twoway line meaneduc year, by(race)


Meaning, it calculated the average mean over the given period of time, but what I want to see is how the average education level for each year evolved by race ? how can I do it???