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
Summarizing essential information by some conditionsHello! Now I am working with many files from 2006 to 2017 (each file for each year). In every of the…
How to reduce space between items in graph editorHello Statalisters, I have produced a meta forestplot (see png below), but I do not know how to redu…
Scale in graph dotDear all, I am having problems with the following code: Code: graph dot (mean) promedio2017 prome…
Codes for cross sectional dependence tests (i.e. Baltagi (2012); Biased-adj LM (Pesaran et al., 2006) Pesaran CDLMPlease, let me know what are the commands to run Baltagi et al. (2012) CD, Bias-adjusted LM test (Pe…
Conflicting results of cross sectional dependence testing in panel data (PesaranCD, Frees, Friedman tests)Conflicting results of cross sectional dependence testing in panel data (Pesaran CD, Frees, Friedman…
Subscribe to:
Post Comments (Atom)
0 Response to Birth Cohorts
Post a Comment