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
Why F-test is missing? Could you please help!Hi, I run some regressions, but the F-test is missing. I read some previous posts related to this i…
Multiple Regression analysis: Explanatory Variable as percentageIn STATA when I do a regression analysis and the y variable is expressed in a percentage, I normally…
Instrumental Variable HelpHi, I'm having trouble with a new instrumental variable. So I'm trying to find some causality, betw…
conditional rowtotalHello, I am trying to sum across columns only the 1s. I have tried egen pri_sum=rowtotal(pri_q1-pri…
Using boottest after bootstrap clustering with 1000 replication ??I am using a diff-in-diff methodology on a cross-sectional data. I am first using bootstrap cluster…
Subscribe to:
Post Comments (Atom)
0 Response to Creating age-range variable
Post a Comment