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

From |
"E. Paul Wileyto" <epw@mail.med.upenn.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Survival analysis: repeated spells |

Date |
Fri, 25 Sep 2009 14:25:42 -0400 |

ln L(i)= c log h(t)+log S(t) This should actually be ln L(i)= c log h(t)+ (1-c) log S(t)

ln L(i)= c log h(t)+ (1-c) log S(t) - S(t0)

Paul V. Martini wrote:

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 tothe same unit, stata requires to specify the id( ) option when thedata are stset-ted. But my question is about how stata deals with thisproblem in the estimation.For instance, suppose the contribution to the loglikelihood (withright 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 thehazard function and S the survival function.How the contribution to the likelihood changes when unit i hasrepeated spells? In my case this is relevant because I have to programthe 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/

-- E. Paul Wileyto, Ph.D. Assistant Professor of Biostatistics Tobacco Use Research Center School of Medicine, U. of Pennsylvania 3535 Market Street, Suite 4100 Philadelphia, PA 19104-3309 215-746-7147 Fax: 215-746-7140

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

**Follow-Ups**:**Re: st: Survival analysis: repeated spells***From:*"V.Martini" <vinmar0@hotmail.com>

**References**:**st: Survival analysis: repeated spells***From:*"V. Martini" <vinmar0@hotmail.com>

- Prev by Date:
**Re: st: RE: RE: RE: Having multiple data files open in Stata 9** - Next by Date:
**Re: st: Creating post-stratification weights for use in Stata & other software** - Previous by thread:
**st: Survival analysis: repeated spells** - Next by thread:
**Re: st: Survival analysis: repeated spells** - Index(es):

© Copyright 1996–2022 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |