base.rms (version 1.0)

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

Description

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

Usage

cph2coxph(fit)

Arguments

fit

cox regression results of cph()

Value

results of coxph()

Examples

Run this code
# NOT RUN {
library(rms)
fit <- cph(formula = Surv(mpg, vs) ~ am + gear + carb, data = mtcars)
cph2coxph(fit)
# }

Run the code above in your browser using DataLab