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

2007-07-11 Thread hadley wickham
str(survreg(s~groups, dist=gaussian)) is probably a good place to start. Hadley On 7/11/07, Vlado Sremac [EMAIL PROTECTED] 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

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

2007-07-11 Thread Henrique Dallazuanna
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 [EMAIL PROTECTED] wrote: dear r experts: It seems my message got spam filtered, another

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

2007-07-11 Thread Marc Schwartz
Actually, in this case, looking at the code for: survival:::print.survreg would be better, as the p value is calculate there, rather than being part of the survreg object. As with many R functions, the p value is calculated in the print method for the object. In this case, it is a pretty

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

2007-07-11 Thread hadley wickham
On 7/11/07, Marc Schwartz [EMAIL PROTECTED] wrote: Actually, in this case, looking at the code for: survival:::print.survreg would be better, as the p value is calculate there, rather than being part of the survreg object. As with many R functions, the p value is calculated in the print

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

2007-07-11 Thread Marc Schwartz
On Wed, 2007-07-11 at 16:41 +0200, hadley wickham wrote: On 7/11/07, Marc Schwartz [EMAIL PROTECTED] wrote: Actually, in this case, looking at the code for: survival:::print.survreg would be better, as the p value is calculate there, rather than being part of the survreg object. As