Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Dropping overlapped spells in duration data
From
Kai Huang <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: Dropping overlapped spells in duration data
Date
Sat, 25 May 2013 15:18:12 +0000
Dear all,
I have a spell dataset with some overlapped spells as follows:
ID Start End Y X
888 1981 1985 1 0
888 1985 1989 1 1
888 1986 1988 0 0
888 1989 1991 1 0
888 1991 1995 0 1
889 1987 1992 0 1
889 1992 1996 1 1
A spell of ID 888 starting from 1986 is overlapped with other spell and seems to be redundant. Are there any commands in STATA which can help to drop overlapped spell in this case? Thank you very much in advance.
Best regards,
Kai Huang
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/