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
Accumulate ifDear, good night! See if anyone can give me a tip. I consulted and I'm not finding topics on the sub…
Non-linear least squares regressions by group with common constant across groupsHello, I am trying to perform the following production function estimation procedure. I have a pane…
How to test effects of multiple predictors on repeated measure binary outcomeI have a 3x2x2 between subjects design. Participants are randomly assigned to 1 level of each of 3 f…
Clarifying the triple diff definition in generalized DiD?Hi all, I am examining the triple diff (diff-in-diff-in-diff)(DDD) in a staggered setting. Normally…
Canonical two-way fixed effects with cross sectional id and time t: two stage procedure gives almost, but not exactly what I expect.Good evening, I have been reading the literature for estimating two way fixed effects models, and i…
Subscribe to:
Post Comments (Atom)
0 Response to Birth Cohorts
Post a Comment