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

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


On 7/11/07, Marc Schwartz <marc_schwartz at comcast.net> 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 method for the object.

I wish print methods wouldn't do that. Printing is supposed to be
about displaying existing create, not creating new values.

Hadley



More information about the R-help mailing list