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
Formatting in the command: generate _registration_date = date(registration_date, "DMY")Hi, I have a string variable for the registration data and I am trying to destring it. I am running…
Deleting variables with specific values in a specific rowI would like to keep variables if the third-row value is SHD. If the third-row value is not SHD, I w…
More than one change point in interrupted time-seriesDear colleagues the data below is a subset of my data that I am intending to analyse using interrupt…
Observe the jumps of (number of) observations and drop the outliersHello, I'ma beginner in Stata and I have some questions on observing the jumps of number of observ…
Mi impute pmm nearest neighbor matchingHello, I am using mi impute pmm command and I have a question regarding nearest neighbor matching. I…
Subscribe to:
Post Comments (Atom)
0 Response to Generate a mean that varies over time
Post a Comment