Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: stacking unique values of several variables under one new variable


From   James Bernard <jamesstatalist@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: stacking unique values of several variables under one new variable
Date   Mon, 25 Feb 2013 14:15:16 +0800

Dear all,

I have been struggling with the following. I would appreciate you help

I have a variable ("Technology) that indicates type(s) of a technology
for each record. I want to aggregate the unique values of this
variable under one new variable, say, called "Type:


Technology
-------------------------
Monoclonals
Vaccines
Adjuvant, Vaccine
Combinchem, Monoclonals





Now, i want to create a variable that stores unique values:

Type
-----------
Monoclonals
Vaccines
Adjuvant,
Combinchem

I would appreciate your help.

Thanks,
James
*
*   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/


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