Re: [R] log rank test p value

2007-05-16 Thread Terry Therneau
The best place to start is help(survdiff) That's right -- read the documentation! This tells you what is contained in the output to survdiff, namely objects n, obs, exp, chisq, and var, including descriptions of each. The number of degrees of freedom for the chisquare test is (#groups

[R] log rank test p value

2007-05-15 Thread Murray Pung
How can I get the Log - Rank p value to be output? The chi square value can be output, so I was thinking if I can also have the degrees of freedom output I could generate the p value, but can't see how to find df either. (survtest - survdiff(Surv(time, cens) ~ group, data = surv,rho=0)) Call:

Re: [R] log rank test p value

2007-05-15 Thread Marc Schwartz
On Wed, 2007-05-16 at 11:54 +1000, Murray Pung wrote: How can I get the Log - Rank p value to be output? The chi square value can be output, so I was thinking if I can also have the degrees of freedom output I could generate the p value, but can't see how to find df either. (survtest -