I'm running a Weibull regression using the survreg function in the survival package.
I'd like to use gtsummary to then produce a table of the results.
But when I try to exponentiate the beta coefficient, it just returns me the same beta value - but says it's exp(B) in the header.
reprex:
library(survival)
library(gtsummary)
fit_w<-survreg(Surv(time, status) ~ sex, dist='weibull', data=lung)
tbl_regression(fit_w)
tbl_regression(fit_w,
exponentiate=TRUE)