how do l programme the logrank test. l am trying to compare 2 survival curves --------------------------------- [[alternative HTML version deleted]]
raymond chiruka wrote:> how do l programme the logrank test. l am trying to compare 2 survival curves > > >library(survival) ?survdiff
On Tue, 2007-05-01 at 08:34 -0700, raymond chiruka wrote:> how do l programme the logrank test. l am trying to compare 2 survival curvesSee: library(survival) ?survdiff and take note of the 'rho' argument, which when set to 0 is the logrank test. HTH, Marc Schwartz
Hi, On 5/1/07, raymond chiruka <rtchiruka@yahoo.com> wrote:> > how do l programme the logrank test. l am trying to compare 2 survival > curvesif you simply want to use the logrank test, have a look at the first example of the function survdiff in the survival package. If you read the help page there, it says that the default setting of rho=0 is the log rank test. library(survival) survdiff(Surv(futime, fustat) ~ rx,data=ovarian) survdiff(Surv(futime, fustat) ~ rx,data=ovarian, rho=0) I hope this helps? Best, Roland [[alternative HTML version deleted]]
And since Peter Dalgaard also just answered (without advertising his book): if you (or your library) happen to have 'Introductory Statistics with R' by Peter Dalgaard, have a look at section 12.4. Best, Roland On 5/1/07, raymond chiruka <rtchiruka@yahoo.com> wrote:> > how do l programme the logrank test. l am trying to compare 2 survival > curves > > > > --------------------------------- > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@stat.math.ethz.ch 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. >[[alternative HTML version deleted]]
hie how do you compute the logrank test using R what commands do you use thanks --------------------------------- Don't pick lemons. [[alternative HTML version deleted]]
Hi I have a problem with computing the logrank test using R, can someone give me the relavent code or help me otherwise please! Thanks -- View this message in context: http://www.nabble.com/Logrank-test-tf3851514.html#a10910383 Sent from the R help mailing list archive at Nabble.com.
See ?survdiff in the survival package. Mbini wrote:> Hi > > I have a problem with computing the logrank test using R, can someone give > me the relavent code or help me otherwise please! > > Thanks-- Kevin E. Thorpe Biostatistician/Trialist, Knowledge Translation Program Assistant Professor, Department of Public Health Sciences Faculty of Medicine, University of Toronto email: kevin.thorpe at utoronto.ca Tel: 416.864.5776 Fax: 416.864.6057