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

st: Selecting observations using another file/datset


From   "MA V" <[email protected]>
To   [email protected]
Subject   st: Selecting observations using another file/datset
Date   Wed, 08 Dec 2004 22:47:01 +0000

Hi,
Is there an easy way of keeping only the observations in one file (table) that are present in another file?
For example, if I have a file with date, names, height and weigth

date names height weight
1 Ann ... ...
2 Ann ... ...
.... ...
T Ann ... ...
1 Bob ... ...
2 Bob ... ...
...

and I want to keep only the observations for the names that are listed in a separate file, can I do this without using the merge command?
I would appreciate your help on this.
Thanks,
MA

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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