Skip to contents
"forest"

Forest plot of the hazard ratios (with 95% confidence intervals) of the Cox marginal survival model and, when the fit has competing risks, of the odds ratios (with 95% Wald confidence intervals) of the logistic event-type model, on a log scale with a reference line at 1.

"basehaz"

The Cox model's baseline cumulative hazard (covariates at 0, not centered), one step curve per stratum.

Usage

# S3 method for class 'survivalSub.BJM'
plot(x, which = c("forest", "basehaz"), ...)

Arguments

x

A survivalSub.BJM object returned by survivalSub.

which

Which plot to draw: "forest" (default) or "basehaz".

...

Currently unused.

Value

A ggplot object.

Examples

data(pbc3)
data_survival_fitting <- pbc3[!duplicated(pbc3$id), ]
survival_fit_all <- survivalSub(data_survival_fitting,
                                Surv(years, status3) ~ age + sex,
                                status4 ~ years + age + sex)
plot(survival_fit_all)

plot(survival_fit_all, which = "basehaz")