base.rms (version 1.0)

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

Description

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

Usage

coxph2cph(fit)

Arguments

fit

cox regression results of coxph()

Value

results of coxph()

Examples

Run this code
# NOT RUN {
library(survival)
fit <- coxph(Surv(mpg,vs)~am+gear+carb,data=mtcars)
coxph2cph(fit)
# }

Run the code above in your browser using DataLab