Statalist The Stata Listserver


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

Re: st: RE: Merge??


From   [email protected]
To   [email protected]
Subject   Re: st: RE: Merge??
Date   Wed, 14 Feb 2007 12:11:42 -0600

How about something like this:

clear
input time d1
82    1
90    0
end
tempfile foo
bysort time: gen foo = _n
sort time foo
save `foo'.dta, replace

clear
input time d2
 82    1
 82    1
 89    0
end
bysort time: gen foo = _n
sort time foo
merge time foo using `foo'.dta
drop foo
l



----- Original Message -----
From: Raphael Fraser <[email protected]>
Date: Wednesday, February 14, 2007 11:37 am
Subject: Re: st: RE: Merge??
To: [email protected]

> Did not mistype. That is exactly what I want. That is why merge 
> has a
> question sign in the subject line (Merge??). At first glance it looks
> like a merge solution but its probably not.
> 
> Raphael
> 
> 
*
*   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