Statalist


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

st: R: Someone help me on the multiple failure duration model?


From   "Carlo Lazzaro" <[email protected]>
To   <[email protected]>
Subject   st: R: Someone help me on the multiple failure duration model?
Date   Mon, 3 Nov 2008 16:40:52 +0100

Dear Martin,
all these topics are covered in Cleves MA, Gould WW, Gutierrez RG. An
introduction to survival analysis using Stata. Revised edition. College
Station: Stata Press, 2004.

In my opinion, this is a very "good value for money" textbook.

 
Kind Regards,

Carlo
-----Messaggio originale-----
Da: [email protected]
[mailto:[email protected]] Per conto di Martin Wang
Inviato: lunedì 3 novembre 2008 16.22
A: [email protected]
Oggetto: st: Someone help me on the multiple failure duration model?

/********** This is a html email************************/

Dear all, 

Can someone help me on the multiple failure duration model? For example,
let's say I have the following data:


year             |       1        |         2        |        3         |
4         |       5          |       6         |      7                  
patient 1(Female)|weight:50,ill(0)| weight:52,ill(0) |
weight:53,fine(1)|weight:48,fine(1)|weight:50,ill(0)  |weight:50,ill(0)
|weight:50,ill(0)
patient 2(male)  |weight:51,ill(0)| weight:48,ill(0) | weight:60,ill(0) |
weight:67,ill(0)|weight:78,fine(1) |weight:60,fine(1)| (missing)  
patient 3(male)  |weight:52,ill(0)| weight:50,fine(1)| (missing)        |
(missing)       | weight:50,fine(1)| weight:40,ill(0)| weight:60,ill(0) 


You see for each patient there are multiple observations, and also there may
be multiple failures(in this case - getting fine). And also some subject has
gap in the data, for example patient 3 has gap in year 3 and year 4. I
wonder whether I can still use streg or stcox for this setting and use ALL
the observations. For example,

*****************************************************
stset t, id(patient) failure(fine) exit(time .) noshow
stcox weight female, r 
or streg weight female, r
*****************************************************
Can anyone kindly help me out? Any suggestions?

Many thanks!!

Martin

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



*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index