Statalist


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

st: Survival analysis: repeated spells


From   "V. Martini" <vinmar0@hotmail.com>
To   Statalist <statalist@hsphsun2.harvard.edu>
Subject   st: Survival analysis: repeated spells
Date   Fri, 25 Sep 2009 18:07:17 +0100

Hello,

this is maybe a trivial question for some of you:

how does stata account for the presence of repeated spells?

I know that, in order to account for different spells that refers to the same unit, stata requires to specify the id( ) option when the data are stset-ted. But my question is about how stata deals with this problem in the estimation.

For instance, suppose the contribution to the loglikelihood (with right censoring) is given by:

L(i)=  c log h(t)+log S(t)

where c is a censoring variable (c=1 if spell is complete), h is the hazard function and S the survival function.

How the contribution to the likelihood changes when unit i has repeated spells? In my case this is relevant because I have to program the likelihood function by myself.


Many thanks,

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