Return the coefficient table with standard errors, the exponentiated effect
and Wald confidence intervals. Covariate rows and baseline distribution
parameters are separated by a component column (a baseline parameter that
flexsurv estimates on the log or logit scale is named so, for example
log(shape)), and the ratio_type column records whether a covariate
effect reads as a hazard ratio (proportional hazards), a time ratio
(accelerated failure time) or an odds ratio. Baseline parameters get no
ratio, and neither do the covariates of the flexsurv gamma family, which
act on its rate (exp(coefficient) is the inverse of a time ratio).
Arguments
- fit
A sest_fit.
- conf_level
Confidence level for the Wald interval (default
0.95).
Value
A data frame with columns term, component
("covariate" / "auxiliary"), estimate, std_error, ratio_type,
ratio, conf_low and conf_high. For auxiliary parameters ratio_type,
ratio and the interval are NA, and so are ratio and the interval when
the ratio type is not "HR", "TR" or "OR" (a probit spline, or a fit
that declares none).
See also
sest_curve() for predicted survival.
Other fit-methods:
sest_curve()
Examples
fit <- survestimand(survival::Surv(time, status) ~ age + sex, survival::lung, method = "cox")
sest_tidy(fit)
#> term component estimate std_error ratio_type ratio conf_low
#> 1 age covariate 0.01704533 0.009223273 HR 1.017191 0.9989686
#> 2 sex covariate -0.51321852 0.167457962 HR 0.598566 0.4310936
#> conf_high
#> 1 1.0357467
#> 2 0.8310985
