| plot_heat_injury | R Documentation |
plot_heat_injury() draws the point-estimate survival trajectory from
predict_heat_injury() inside the pointwise parametric-bootstrap confidence
band from heat_injury_envelope(). The band is prior-free – a confidence
band, never a posterior or credible band.
plot_heat_injury(
object,
trace,
group = NULL,
target_surv = NULL,
t_c = NULL,
repair = NULL,
irreversible = TRUE,
nboot = 1000L,
conf.level = 0.95,
seed = NULL,
time_div = 1,
xlab = NULL,
ylab = "Survival",
T_c = NULL,
trace_unit = NULL,
irreversible_mortality = NULL,
repair_pars = NULL
)
object |
A |
trace |
A data frame with numeric columns |
group |
Optional single group level (grouped fits only; required when the fit is grouped). |
target_surv |
Optional absolute survival threshold defining one lethal
dose: a single probability strictly between the fitted lower and upper
asymptotes. |
t_c |
Optional damage-cutoff temperature (degrees C): at or below it the
damage rate is zero. |
repair |
Optional named list of Sharpe-Schoolfield repair parameters (see
Details); |
irreversible |
Logical; if |
nboot |
Number of bootstrap replicates (default |
conf.level |
Width of the pointwise confidence band (default |
seed |
Optional integer seed; when supplied the bootstrap is reproducible without disturbing the caller's random stream. |
time_div |
Optional positive divisor applied to returned time on the
x-axis. For a |
xlab, ylab |
Axis labels. |
T_c, trace_unit, irreversible_mortality, repair_pars |
Compatibility
aliases for |
A ggplot object.
heat_injury_envelope() for the band data, predict_heat_injury()
for the point trajectory.
raw <- simulate_tls(family = "binomial", times = c(30, 60, 120, 240, 480),
CTmax = 36, z = 4, tref = 60, seed = 1)
dat <- standardize_data(raw, temp = "temp", duration = "duration",
n_total = "total", n_surv = "survived", duration_unit = "minutes")
fit <- fit_4pl(dat, family = "binomial", t_ref = 60,
method = "wald", quiet = TRUE)
trace <- data.frame(time = seq(0, 120, by = 5),
temp = 34 + 6 * sin(seq(0, 2 * pi, length.out = 25)))
plot_heat_injury(fit, trace, nboot = 50, seed = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.