Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Agnieszka Trzeciakiewicz" <agazto@gmail.com> |
To | <statalist@hsphsun2.harvard.edu> |
Subject | st: FW: add 3 quarters |
Date | Wed, 2 May 2012 20:10:56 +0100 |
Hello, I have a dataset which contains an information on individuals and traces the period of a record in quarters. There are two variables in the dataset: ?ID?, and ?time? I would like to generate additional 4 rows for each observation, and the only variable that I need to change with added rows is time variable which should equal time ? 1quarter, time -2 quarters,, time-3 quarters and time -4 quarters. Do you have any idea how to do this? Thanks, Agnieszka * * 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/