Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | R Zhang <r05zhang@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: generate group variables |
Date | Sat, 15 Feb 2014 20:39:22 -0500 |
Dear all, I would like to generate 36 group code based on technological classification code. for example, for technological classification code= 8,19,71, 127, 442, 504, it will be coded as groupcode=11, for technological classification code= 106, 118, 401, 427, it will be coded as groupcode=12, .... etc I just switched from sas programming to stata, hence, not very good at stata coding. could you shed light one this? thanks, Rochelle * * 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/