coxph2cph: Convert results of cox regression from coxph() to cph()

Description Usage Arguments Value Examples

View source: R/coxph2cph.R

Description

Convert results of cox regression from coxph() in 'survival' package to cph() in 'rms' package.

Usage

1
coxph2cph(fit)

Arguments

fit

cox regression results of coxph()

Value

results of coxph()

Examples

1
2
3
library(survival)
fit <- coxph(Surv(mpg,vs)~am+gear+carb,data=mtcars)
coxph2cph(fit)

base.rms documentation built on Aug. 1, 2020, 5:06 p.m.