[R] Logrank test

2007-06-01 Thread Mbini

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.

__
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.


Re: [R] Logrank test

2007-06-01 Thread Kevin E. Thorpe
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: [EMAIL PROTECTED]  Tel: 416.864.5776  Fax: 416.864.6057

__
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.


[R] logrank test

2007-05-07 Thread raymond chiruka
hie how do you compute the logrank test using R
  what commands do you use
  thanks
  
 
-
Don't pick lemons.

[[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.


[R] logrank test

2007-05-01 Thread raymond chiruka
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.


Re: [R] logrank test

2007-05-01 Thread Peter Dalgaard
raymond chiruka wrote:
 how do l programme the logrank test. l am trying to compare 2 survival curves
   
   
   
library(survival)
?survdiff

__
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.


Re: [R] logrank test

2007-05-01 Thread Roland Rau
Hi,

On 5/1/07, raymond chiruka [EMAIL PROTECTED] wrote:

 how do l programme the logrank test. l am trying to compare 2 survival
 curves


if 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]]

__
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.


Re: [R] logrank test

2007-05-01 Thread Marc Schwartz
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 curves


See:

library(survival)
?survdiff

and take note of the 'rho' argument, which when set to 0 is the logrank
test.

HTH,

Marc Schwartz

__
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.


Re: [R] logrank test

2007-05-01 Thread Roland Rau
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 [EMAIL PROTECTED] 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]]

__
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.