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
Correlation Data where there is quarterly trendsHi, I would like to find if there is a correlation between Compost and Recycling rates in each loca…
how to drop entire household (of two) if at least one household member has at least one missing on all explanatory variablesDear Statalist, each household consists of a man and a woman (female==1). I want to drop every hous…
Finding time trends in each variableI am working with panel data of 311 local authorities over 20 quarters. Is there a simple way to fin…
OLS RegressionHey folks i'm writing a term paper about the influence of parenthood on life satisfaction. Since it…
Issue with Levin Lin Chu unit root test and strongly balanced dataHi everyone, I am trying to apply xtunitroot llc on a strongly balanced panel dataset without gaps …
Subscribe to:
Post Comments (Atom)
0 Response to Generate a mean that varies over time
Post a Comment