[R] Extract concordance from coxph.object
Milan Bouchet-Valat
nalimilan at club.fr
Wed Jan 4 11:06:36 CET 2012
Le mercredi 04 janvier 2012 à 09:27 +0000, Bonnett, Laura a écrit :
> Dear all,
>
> As I said in my previous email I have just upgraded to R 2.14.0 on Windows 7. I have just run the 'coxph' function and notice that a Concordance statistic is produced. Is there any way to extract this information from the output?
>
> E.g. can I call the concordance value independently of calling the output?
If you have a look at
str(coxmodel)
(assuming coxmodel holds the object)
then you'll see that there's a "concordance" member.
You can use
coxmodel$concordance
to get it.
Cheers
More information about the R-help
mailing list