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/