Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: years and ages in variables


From   Matthew Aronson <maronson@rams.colostate.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: years and ages in variables
Date   Tue, 16 Jun 2009 15:02:55 -0600

My dataset, in the wide form, contains for each respondent a series of
variables that have the form: education1979,
education1980...education2004, where each variable educationYYYY
contains the respondent's educational status during the indicated
calendar year.
I know each respondent's birth year (as a distinct variable,
"dob_year"), and would like to get a series of variables of the form
"education14," education15"...education52.
My idea is that "education14" would hold the respondent's education at
age 14, up to the oldest respondent age of 52.  Could someone please
suggest some code to help me figure out this problem?

Matt Aronson
Fort Collins, Colorado USA

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index