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

hadley wickham h.wickham at gmail.com
Wed Jul 11 16:11:08 CEST 2007


str(survreg(s~groups, dist="gaussian"))

is probably a good place to start.

Hadley

On 7/11/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