Statalist


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

Re: st: gen & summation


From   Philipp Rehm <[email protected]>
To   [email protected]
Subject   Re: st: gen & summation
Date   Mon, 05 Nov 2007 22:15:37 -0500

You ask Stata to assign missing values whenever your variable select!=1, or when day1, day2, day3 are all missing.

So, I don't see the problem.

HTH,
Philipp

Ziad El-Khatib wrote:

Hi
very strange result is happening when i try to


gen total=day1+day2+day3 if select==1


STATA gives
(1330 missing values generated)

Although the above variables (day1,2,3) contain numeric values, 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/

*
*   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