Statalist


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

st: expand and duration model


From   [email protected]
To   [email protected]
Subject   st: expand and duration model
Date   Sun, 17 Feb 2008 11:00:48 +0100

Dear statalist,
I have a problem to understand how to expand my observation to stset my data to use in a
duration model.
I have the following data set:

id datealt datebax y x
1 11/02/2001 14/08/2003 100 205
1 02/03/2005 05/06/2005 120 130
1 13/08/2005 18/12/2005 100 130
2..........
2..........

so I want a dataset for the period that I don't observe the id:

id datealt datebax y x
1 11/02/2001 14/08/2003 100 205
1 15/08/2003 01/032005 0 0
1 02/03/2005 05/06/2005 120 130
1 06/06/2005 12/082005 0 0
1 13/08/2005 18/12/2005 100 130
2.........
2.......
2..........
Someone can help me?
I try with expandby but without results.
Thanks in advance.


Catia

*
* 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