Vegard Andersen
2004-Oct-29 11:42 UTC
[R] How to obtain confidence intervals from a coxph object?
Hi! I am performing an analysis which looks like this: cox.out <- coxph(Survobject ~ x1 + x2 + x3) summary(cox.out) This works fine, but I have not been able to extract any of the output from "summary(cox.out)", for instance like: summary(cox.out)$coef or summary(cox.out)$lower So my question is if there is any way to extract the information given in summary(cox.out)? Thanks in advance! Best regards, Vegard Andersen Institute of Community Medicine University of Tromso Tromso, Norway --
Prof Brian Ripley
2004-Oct-29 12:29 UTC
[R] How to obtain confidence intervals from a coxph object?
On Fri, 29 Oct 2004, Vegard Andersen wrote:> I am performing an analysis which looks like this: > > cox.out <- coxph(Survobject ~ x1 + x2 + x3) > summary(cox.out) > > This works fine, but I have not been able to extract any of the output > from "summary(cox.out)", for instance like: > > summary(cox.out)$coef or > summary(cox.out)$lower > > So my question is if there is any way to extract the information given in > summary(cox.out)?Yes, provided you have updated to survival_2.15 (out this week). -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595