Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: gen & summation again


From   "Ziad El-Khatib" <[email protected]>
To   [email protected]
Subject   st: gen & summation again
Date   Mon, 5 Nov 2007 19:29:58 -0800

Hi again,
new query for the summation

Drug1             Drug2
--------              -------
1                         .
3                        .
.                          1
2                          .
.                           5



I want to have new variable "drugs" containing the values of drug1 and
drug2 together, but when i make summation, it is generating missing
values because drug1 and drug2 can not have numerical values at the
same time, of one obs had data, the other will be empty for sure.
Any tips?

Thank you and best regards
ziad
*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index