plot_survival: Fitted vs empirical survival curve

View source: R/plot.R

plot_survivalR Documentation

Fitted vs empirical survival curve

Description

Fitted vs empirical survival curve

Usage

plot_survival(fit)

Arguments

fit

A converged "slt_fit" object, fit to data from a simple-step-stress (rslt() with prop_transfer = 1) design.

Value

A ggplot object.

Examples

set.seed(1)
d <- rslt(150, "weibull", c(0.05, 1.5), c(0.2, 1.5), tau1 = 5, prop_transfer = 1)
fit <- fit_slt(d, "weibull", "shape1", tau1 = 5)
plot_survival(fit)

stagelife documentation built on Nov. 3, 2026, 5:08 p.m.