get_cindex: Get c-index

Description Usage Arguments Value Author(s) References See Also Examples

Description

The efficacy of the survival model can be measured by the concordance statistic

Usage

1
2
3
get_cindex(x, mod, ...)

get_cindex(x, mod, ...)

Arguments

mod

Coxph model object fitted with coxph (survival).

data

For the default functions, a datframe containing survival (time), and status (0:censored/1:event), and the explanatory variables.

Value

A cindex object

Author(s)

Carlos S Traynor

References

Terry M. Therneau and Patricia M. Grambsch (2000). _Modeling Survival Data: Extending the Cox Model_. Springer, New York. ISBN 0-387-98784-3. @export get_cindex

See Also

[coxph]

Examples

1
2
3
4
5
6
7
8
9
require(survival)
require(dplyr)
data(lung)
lung <- lung %>%
mutate(status = (status == 2))

mod <- coxph(Surv(time, status)~ age, data = lung)

get_cindex(lung, mod)

csetraynor/survbayes2 documentation built on May 30, 2019, 4:06 a.m.