[R] p-value from survreg(), library(survival)

Henrique Dallazuanna wwwhsd at gmail.com
Wed Jul 11 16:32:59 CEST 2007


Try also:

pchisq(summary(sr)$chi, degrees_freedom, lower=FALSE)

*You need know your degrees of freedom

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O


On 11/07/07, Vlado Sremac <vladosr at gmail.com> wrote:
> dear r experts:
> It seems my message got spam filtered, another try:
> i would appreciate advice on how to get the p-value from the object 'sr'
> created  with the function survreg() as given below.
> vlad
>
> sr<-survreg(s~groups, dist="gaussian")
> Coefficients:
> (Intercept)      groups
> -0.02138485  0.03868351
>
> Scale= 0.01789372
>
> Loglik(model)= 31.1   Loglik(intercept only)= 25.4
>         Chisq= 11.39 on 1 degrees of freedom, p= 0.00074
> n= 16
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>



More information about the R-help mailing list