Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | natasha agarwal <agarwana2@googlemail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: Combining dates in Stata |
Date | Thu, 26 Jan 2012 20:28:24 +0000 |
Dear All. I have two time variables in my dataset - one for year and one for month. Both of these variables are numeric with Year containing four-digit year values and month is a two-digit values ranging from 1 to 12. I would like to combine the Year and month variables into one a time variable to allow me to work with the dataset as a panel. How do I recode (or replace) the Year and Semester month to create one. Specifically, I would like to have one variable that reads 1/2000 for january 2000, or 2000m1... I do not really mind the format! Thank you in advance for your help. Natasha * * 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/