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
Is it usual for ivprobit per se to run quickly but margins after that is very slow?ivprobit finished in may a few minutes. But I am waiting for hours for margins to finish. Is this no…
Advice regarding Stata NetCourseHello, Hope you all are well and safe. I am looking to expand my knowledge in visualization using …
Standard Error of Estimation in Panel Data RegressionHello, I am working on a panel data, N=600, T=10. After running the regression analysis, -xtreg, fe-…
Bug in import sasStata Tech Support has verified that there is a bug in version 16.1 import sas. If a SAS dataset (sa…
Generating 500 AR(1) processesHello everyone, Just wanted to know how to generate 500 processes of the following model: Yt=alpha…
Subscribe to:
Post Comments (Atom)
0 Response to Generate a mean that varies over time
Post a Comment