Statalist


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

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


From   "Martin Wang" <zwang215@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Someone help me on the multiple failure duration model?
Date   Mon, 3 Nov 2008 23:25:13 +0800

Sorry, this is not a html email. And I hope you could read my table. There are 7 years and 3 subjects.

Thanks!

Martin

======= 2008-11-03 23:21:42 Original Message:=======

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