Hello!
I would like to create a new age-range variable, which will be a breakdown of already existing age-range variable: at the moment I have age ranges of 0 to 24, 25 to 39, 40 to 49, and 50 to 59 for every country in the world. I would like to keep this one and also create a new variable which will have following age-ranges: <1, 1 to 4, 5 to 9, 10 to 14, 15 to 19... etc (with 4 year intervals) for every country. I understand there will need to be duplicates for already existing age ranges. I am having a hard time with coming up with a code, and would appreciate some help! Thank you!
Related Posts with Creating age-range variable
Command "esttab": Adding more digits to odds ratio coefficientsHi, I'm working with logit model and OR to interpret results. After run regress one of the models s…
egen for specific time periodHi, I want to calculate the standard deviation for a specific year group i.e.- year variable SD_…
Normalising a variable between 0 and 1I am running a regression where my dependent variable is a 0-6 scale Likert item, and I am planning …
Append MergeDear all, I have tried to merge my datasets but appending was the approach that lead me to my resul…
Adding coefficient when plotting coefficients from an event studyHi, all Stata lovers, I am plotting coefficients from an event study and I would really like to hav…
Subscribe to:
Post Comments (Atom)
0 Response to Creating age-range variable
Post a Comment