Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: using two dataset simultaneously


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   Re: st: using two dataset simultaneously
Date   Mon, 25 Jun 2007 15:51:21 -0400

...
I would add the -nokeep- option to the merge command, otherwise you will be keeping reference data that isn't needed or useful (assuming that d2 is the reference data).

Michael Blasnik

----- Original Message ----- From: "Austin Nichols" <[email protected]>
To: <[email protected]>
Sent: Monday, June 25, 2007 2:59 PM
Subject: Re: st: using two dataset simultaneously



Visintainer, Paul <[email protected]>:
see -help merge-

use dataset2
sort sex agemo
save d2

use dataset1
sort sex agemo
merge sex agemo using d2
tab _m
ren _m merge_d2
g underwt = (bmi < p5) if !mi(bmi,p5)
save combined

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