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
teffects - predict pscore, psI estimated the following model before estimating. I need to check the predicted propensity score mo…
Assign a label of a variable to a different variable Code: gen x = 1 label var x "this is x" gen y = 2 label var y "this is x" // <- how to automat…
Probit regression coefficientsDear all, I have conducted a double-bounded contingent valuation study and analysed it in Stata with…
Categorisation of Explanatory Variables in Dynamic Panel EstimationsHi, I am trying to model determinants of corporate cash holdings for ~700 firms across 16 years. I …
Loop for excel file import and Kruskal –Wallis testDear User, I am trying to import several excel files and perform Kruskal –Wallis test test. Therefor…
Subscribe to:
Post Comments (Atom)
0 Response to Generate a mean that varies over time
Post a Comment