Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Add


From   "Dev Vencappa" <lexdvv@nottingham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Add
Date   Fri, 20 Feb 2004 15:09:48 +0000

>>> jtuesta@agrario.minag.gob.pe 02/20/04 02:49pm >>>
How I can add two variables without consider missing-values?



 A simple solution would be to replace missing values with zero and back to missing values after you have done your adding up. If you have very many variables, you can use a loop to execute that. Otherwise, experts in Stata will surely know of a shortcut to ask stata to ignore missing values.


Dev






*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index