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

st: Re: Add


From   "R.E. De Hoyos" <[email protected]>
To   <[email protected]>
Subject   st: Re: Add
Date   Fri, 20 Feb 2004 15:14:58 -0000

mvencode A B, mv(0)
gen C = A+B

rafa
----- Original Message ----- 
From: "jtuesta" <[email protected]>
To: <[email protected]>
Sent: Friday, February 20, 2004 2:49 PM
Subject: st: Add


> How I can add two variables without consider missing-values?
> 
> For example i have two variables A anb B:
> 
>     A     B
>     7     .
>     1     3
>     3     .
>     .     .
>     1     4
>     .     5
> 
> 
> I would like plus A + B = C
> 
> 
>     A     B      C
>     7     .      7
>     1     3      4
>     3     .      3
>     .     .      .
>     1     4      5
>     .     5      5
> 
> 
> Thank`s in advance!
> 
> Jorge Tuesta
> MTPE
> 
> 
> 
> 
> 
> 
> Open WebMail Project (http://openwebmail.org)
> 
> *
> *   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