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
New to stata, Impossible problem for a summary table?Hello all- I'm so glad I found this forum! I've just started working with stata for a biostats class…
Reshape Wide IssueHi, I have been trying to reshape my data from long to wide format using reshape wide. The data look…
Diff in diff: Fix data for one-to-one matching propensity scoreI have a data set of companies with the date they were acquired by a business group and a control gr…
Maximum number of iterations exceededHello, I hope you guys are doing well. I am estimating a model using panel ardl techniques, namely …
Calculating F-statistic after constrained regressionI have run this unconstrained regression *Model: lcost=ß_1+ß_2loutput+ ß_3plabor+ ß_4lcapital+ß_5lpf…
Subscribe to:
Post Comments (Atom)
0 Response to Birth Cohorts
Post a Comment