[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: gen & summation
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/