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

st: Question about sums

From   Rodrigo Briceņo <>
To   "Statalist" <>
Subject   st: Question about sums
Date   Fri, 5 Mar 2004 13:35:56 -0600

Dear friends of the list. I want to know how to deal with missings when I
need to make a sum. Suppose that I have the following variables:

v1   v2  v3  v4
200  .   30   .
.    350  .   100
280  100  30  .

In my original database each of those variables represents a source of
income and the values are the quantities reported in the survey. I want to
generate a new variable that sums all the reported values, but when I do
this directly I get only missings. I guess that is caused by the sum of
missing data, but I don't know a procedure to sum only values reported and
not missings.

Thanks for helping me!


Rodrigo Briceņo
Sanigest Internacional
Telf. Oficina:     (506) 280-5457
Fax:                     (506) 234-1486
Celular:              (506) 357-4535

*   For searches and help try:

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