cox_deviance: Get Deviance

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

Description

Information theory stablishes deviance as a measure of uncertainty reduction. This function can be used to estimate the out of sample deviance. Deviance should not be used when the distribution is not the same across compared models.

Usage

1

Arguments

mod

Coxph model object fitted with coxph (survival).

Value

Deviance

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.

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)

cox_deviance(mod)

csetraynor/iclust2prog documentation built on May 7, 2019, 8:38 a.m.