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

Description Usage Arguments Value Examples

View source: R/coxph2cph.R

Description

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

Usage

1
cph2coxph(fit)

Arguments

fit

cox regression results of cph()

Value

results of coxph()

Examples

1
2
3
library(rms)
fit <- cph(formula = Surv(mpg, vs) ~ am + gear + carb, data = mtcars)
cph2coxph(fit)

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