Hi, Is there an implementation of the G(rho,gamma) class of function indexed weighted log-rank statistics in R? For example those mentioned in the paper by Kosorok and Lin (1999): The Versatility of Function-Indexed Weighted Log-Rank Statistics [JSTOR link : http://www.jstor.org/pss/2669706]. I will be very grateful if someone could point me in the right direction. Thanks, Ritwik Sinha ritwik.sinha at gmail.com | +12033042111 | http://ritwik.sinha.googlepages.com/
On Sep 17, 2008, at 5:25 PM, Ritwik Sinha wrote:> Hi, > > Is there an implementation of the G(rho,gamma) class of function > indexed weighted log-rank statistics in R? For example those mentioned > in the paper by Kosorok and Lin (1999): The Versatility of > Function-Indexed Weighted Log-Rank Statistics [JSTOR link : > http://www.jstor.org/pss/2669706]. I will be very grateful if someone > could point me in the right direction.Have you looked at survdiff in the survival package ? I am not at the moment remembering the proper invocation to get authorship of a package but my memory is that this was written in S- Plus by Therneau and ported to R by Lumley. -- David Winsemius
Hi David, Thanks, survdiff actually only has the G(rho) family, i.e. gamma is set to 0. There is another package called surv2sample, that I found only after I sent out the email, that contains what I am looking for. Thanks, Ritwik On Wed, Sep 17, 2008 at 5:53 PM, David Winsemius <dwinsemius at comcast.net> wrote:> > On Sep 17, 2008, at 5:25 PM, Ritwik Sinha wrote: > >> Hi, >> >> Is there an implementation of the G(rho,gamma) class of function >> indexed weighted log-rank statistics in R? For example those mentioned >> in the paper by Kosorok and Lin (1999): The Versatility of >> Function-Indexed Weighted Log-Rank Statistics [JSTOR link : >> http://www.jstor.org/pss/2669706]. I will be very grateful if someone >> could point me in the right direction. > > Have you looked at survdiff in the survival package ? > > I am not at the moment remembering the proper invocation to get authorship > of a package but my memory is that this was written in S-Plus by Therneau > and ported to R by Lumley. > > -- > David Winsemius > >-- Ritwik Sinha ritwik.sinha at gmail.com | +12033042111 | http://ritwik.sinha.googlepages.com/
The survdiff() function in the survival package does the G(rho) family (ie, G(rho, gamma=0)). -thomas On Wed, 17 Sep 2008, Ritwik Sinha wrote:> Hi, > > Is there an implementation of the G(rho,gamma) class of function > indexed weighted log-rank statistics in R? For example those mentioned > in the paper by Kosorok and Lin (1999): The Versatility of > Function-Indexed Weighted Log-Rank Statistics [JSTOR link : > http://www.jstor.org/pss/2669706]. I will be very grateful if someone > could point me in the right direction. > > Thanks, > > Ritwik Sinha > ritwik.sinha at gmail.com | +12033042111 | http://ritwik.sinha.googlepages.com/ > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >Thomas Lumley Assoc. Professor, Biostatistics tlumley at u.washington.edu University of Washington, Seattle