Hello Jorge:
egen C=rsum(A B)
recode C 0=.
Tim
--- jtuesta <jtuesta@agrario.minag.gob.pe> wrote:
> 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/
=====
wade_tj@yahoo.com
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
*
* 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/