Hi,
I'm using 3 rounds of cross sectional NSSO data and would like to generate a pseudo panel dataset so I can apply panel data methods.
First I generated a year variable for 3 rounds of data- 68,66 and 61
68- gen year=2011
66- gen year=2009
61- gen year=2005
gen birthyr= year-age
This is the range of birthyr for each round
68- 1915-2006
66- 1904- 2004
61- 1905- 2005
I would like to create 10 birth cohorts [ 1905-1915, 1915-1925, 1925-1935, 1935-1945, 1945-1955, 1955-1965, 1965-1975, 1975-1985, 1985-1995, 1995-2005]
What is the stata code for creating 10 birth cohorts?
Thank you for your help,
Samira.
Related Posts with Creating cohorts- pseudo panel data
Reshape long with multiple values in iHi all, I want to reshape my data from Code: * Example generated by -dataex-. For more info, type …
Changing Variables to Same UnitsHi everyone, I have two variables measured in units of 'days', i.e., for how many days an individua…
Exporting Stata output to excelDear All, I have a panel dataset. I calculate the mean of each variable for each cross-section unit…
Matching 1-to-1 without replacement when control pool has multiple rows per unitHello! I have a panel of workers (X years X firms). From this panel, I created a sample of workers…
Which tests are used to calculate the individual P-values in the STATA logit command (binary logistic regression)?This picture is from page 1290 in the STATA manual: Array The model can be made with the following…
Subscribe to:
Post Comments (Atom)
0 Response to Creating cohorts- pseudo panel data
Post a Comment