[R] Help on extract paramters from fitted models

From: Lisa <sangwl_at_gmail.com>
Date: Tue, 29 Apr 2008 12:12:59 -0700

Hi, I have a question about how to extract paramters from a fitted model. I can extract coefficients and std, but from some other statistics, I dont know how to extract. Can anyone help?

Here it is an example:

> coxout<-coxph(Surv(t,t.censor)~x)

> coxout

coxph(formula = Surv(t, t.censor) ~ x)

coef exp(coef) se(coef) z p
x 0.349 1.42 0.257 1.36 0.17

Likelihood ratio test=1.84 on 1 df, p=0.175 n= 200

> coxout$coef


> coxout$p

NULL Any convienent way to extract the LRT and the p value? thank you!

        [[alternative HTML version deleted]]

R-help_at_r-project.org 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. Received on Tue 29 Apr 2008 - 20:58:03 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 29 Apr 2008 - 21:30:39 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive