Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Song, Lin" <Lin.Song@kingcounty.gov> |
To | "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu> |
Subject | st: RE: generate new variables using the first record of the group |
Date | Tue, 29 Oct 2013 22:02:01 +0000 |
Dear Stata users? How do I generate a new variable with its value for all observations equals to the first observation or the nth observation of another variable? Thanks. Lin * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/