Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st:


From   Mar�a Elena Casquel del Campo <[email protected]>
To   [email protected]
Subject   st:
Date   Thu, 9 Jan 2003 16:46:22 +0100

Dear members of Statalist,
I�m trying to estimate duration models with Stata. The problem is that I have 
multispell data in the sense that some individuals experiment failures but 
later enter another time in the sample. I�d like that when the individual 
enters after experimenting failure the clock starts clicking another time.

I have introduced:
 stset finish, failure(cens) time0(star) exit(time .) id(pid) origin(star),and 
obtain:


           pid       wave         _t0          _t        _d
120. 130911101          1           0          11         1
121. 130911101          2          12          23         0
122. 130911101          3          24          35         0
123. 151701103          1           0          11         1
124. 151701103          2          12          23         0
125. 151701103          3          24          35         0
126. 151701103          4          36          47         0
127. 151701103          5          48          59         0
128. 213341102          1           0          11         1
129. 213341102          2          12          23         0
130. 213341102          3          24          35         1

I would like that _t0 start in 0  for the individual 130911101, observation 
121.

Thank you very much.

Elena.
 
  


 

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