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???
Related Posts with Generate a mean that varies over time
Multiple conditions within loopHello, Stata Users! My question might seem too simple, but I am struggling with generating new vari…
random fixed effect model of panel dataHi, I am trying to anlysis an (unbalanced) panel data which covers around 6000 companies (79000 fri…
tsline command with maximum observationsDear Stata community, I am running the tsline command for a graph of average male unemployment by c…
-catplot-: Suppress automatic title under x-axis?Dear all, I am creating a graph much like this: Code: sysuse auto, clear catplot rep78, over(forei…
Generating a change score variableHi Statalist, I am trying to generate a change score that captures changes in labour force particip…
Subscribe to:
Post Comments (Atom)
0 Response to Generate a mean that varies over time
Post a Comment