Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: On event pr 60 days

From   anne broe <>
Subject   st: On event pr 60 days
Date   Tue, 5 Mar 2013 13:12:49 +0000

Dear all
I need to be able to identify several events within 60 days of the first
record to be recorded as one event.

 My data look like this
id   date             event
1   01.01.2005     xxx
1   02.01.2005     xxy
1   02.05.2005     xxx

I would like to identify the first event and add any event within 60 days
to the first event. Any event after 60 days should have its own record, and
any event within 60 days after this event be recorded as the second event

Any suggestions?
*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index