[R] p-value using survdiff

Roseli Aparecida Leandro raleandr at carpa.ciagri.usp.br
Thu Nov 22 17:55:21 CET 2001


     Dear all,

     Does anyone knows how I could extract the p-value in:
 

> survdiff(Surv(tempo,status) ~ grupo,data=dados1,rho=1)
Call:
survdiff(formula = Surv(tempo, status) ~ grupo, data = dados1, rho = 1)

         N Observed Expected (O-E)^2/E (O-E)^2/V
grupo=1 21     5.12    12.00      3.94      14.5
grupo=2 21    14.55     7.68      6.16      14.5

 Chisq= 14.5  on 1 degrees of freedom, p= 0.000143 


Since with the commands below I cannot.

> fit<-survdiff(Surv(tempo,status) ~ grupo,data=dados1,rho=1)
> attributes(fit)
$names
[1] "n"     "obs"   "exp"   "var"   "chisq" "call" 

$class
[1] "survdiff"

I would appreciate any suggestion.
RAL


PS: Please send any to raleandr at carpa.ciagri.usp.br

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list