I wan't to export the output from a cox regression to a table that I then can put into my article. I guess the best way to go about it is with xtable:
library(survival)
data(pbc)
fit.pbc <- coxph(Surv(time, status==2) ~ age + edema + log(bili) +
log(protime) + log(albumin), data=pbc)
summary(fit.pbc)
library(xtable)
xtable(fit.pbc)
Now I want to do the following to the output:
- Add confidence interval (CI) of 95 %
- Select certain rows, say age and log(protime)
- Round the exp(B) & CI to three decimals
- Remove the column with z & regular coef
Thanks in advance!