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

Re: st: one last question


From   "Rajiv Mallick" <[email protected]>
To   [email protected]
Subject   Re: st: one last question
Date   Thu, 16 Jan 2003 14:54:30 -0600

stay live!!

merge creats _merge variable. you can drop variables depending upon the purpose of the merge by making one of the following statements.

drop if _merge==1
drop if _merge==2
drop if _merge==3


_merge==1 obs. from master data
_merge==2 obs. from using data
_merge==3 obs. from both master and using data
or see

http://www.stata.com/help.cgi?merge


From: "Rodrigo Brice�o" <[email protected]>
Reply-To: [email protected]
To: "Statalist \(E-mail\)" <[email protected]>
Subject: st: one last question
Date: Thu, 16 Jan 2003 14:41:51 -0600

Before dying!

Stata Listers: if one merges two databases, but one database has registers
or observations that are not in the other, this result in some missings for
observations that already has information. Could I avoid this?

Rodrigo



*
*   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/

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus

*
* 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