Statalist The Stata Listserver


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

st: Overlapping dates


From   Anton econ <[email protected]>
To   [email protected]
Subject   st: Overlapping dates
Date   Thu, 2 Feb 2006 06:45:37 -0800 (PST)

Dear Stata Useres;

I am facing the following problem. In my data set I
have a number of overlaping dates of 
start and end of variouse prorgammes. I would like to
create a dataset which would 
consists of consequtive dates and contain information
on types of programmes. 
(see exaplme below). 

Potentially this can be solved with the spellsplit
command which is a part of SPELLUTIL package.
However "spellsplit" allows only to sum or average
variables included into the dataset.
The "DISJOINT" ado does not seem to solve the problem
either.

I would very appreciate your advice!

/anton 


/*** Example  ***/

           d0        d1          x
  1.   1Jan99    6Jan99          1
  2.   2Jan99    7Jan99          2




              d0          d1          x   
  1.   01Jan1999   02Jan1999          1          
  2.   02Jan1999   07Jan1999         1;2   

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
*
*   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