Hi statalist!
I would like to make birth cohorts (5 years gap and above 25 years old adult).
I have age and birth year (variable age, byear) in my data.
My attempt was,
code:
gen cohort1=(age>=25 & age<30)
gen cohort2=(age>=30 & age<35)
gen cohort3=(age>=35 & age<40)
.
.
.
Is there any other way to make cohorts?
I will use this cohorts for difference in difference analysis.
Thank you for your help in advance.
Related Posts with Birth Cohorts
Marginsplot with countriesHello all, This is just an example: I do a logit-comman like for instance "logit salary gender" whe…
Assigning random number from list to regression stored nameHello, I want to run several regressions and store them. The name should contain a number randomly …
Identification tests under ivreg2Dear Statalisters, I am running an ivreg2 estimation. I am not too sure on how to interpret these r…
Graphing multiple variables in a single map using SPMAPDeal all, I am using Stata 15. I have a cross section data-set for year 2015 with crop yields for fo…
Functional data analysis for analysis of continuous glucose data (i.e. over days) in StataHello Stata colleagues, I have some continuous glucose data in participants who completed cross-ove…
Subscribe to:
Post Comments (Atom)
0 Response to Birth Cohorts
Post a Comment