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, statalist.org is already up and running.


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

st: fill or expand data


From   nicostat@gmail.com
To   statalist@hsphsun2.harvard.edu
Subject   st: fill or expand data
Date   Tue, 12 Oct 2010 19:16:06 +0200

Dear Statalist,
My question is about to display or fill my data set. I have tried the
command tsfill but I don't know how  continue to arrive at my final
data set.
I have  this data:
id  year enter   year exit    yearcont
1  10/80             2/81           81
1  3/81                4/81          81
1 11/85             2/87          87

And I want to have this one

id  year enter   year exit    yearcont
1  10/80               3/81           80
1   10/80              3/81            81
1   3/81               4/81             81
1   11/85             2/87             85
1    11/85            2/87            86
1  11/85             2/87              87

Thanks for your help.
Catia

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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