Svend's answer assumes that the variables in question
are string. If they were numeric variables with value labels,
use -egen, concat()- with the -decode- option.
Nick
[email protected]
Svend Juul
--------------------------------------------------------------------------------
Ziad wrote:
In Excel the person can have the content of 3 other cells in one cell,
for example
Drug1 Drug2 Drug3 Drugs
--------------------------------------------------------------
Panad Asp Val Panad/Asp/Val
by typing:
drugs=drug1&"/"&drug2&"/"drug3
Is it possible to do something similar in STATA?
-----------------------------------------------------------------
yes:
generate drugs = drug1 + "/" + drug2 + "/" + drug3
or:
egen drugs = concat(drug1-drug3), punct(/)
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/