| derive_lt | R Documentation |
derive_lt() solves the fitted four-parameter curve for the duration at which survival
crosses a target probability p at each requested temperature (an "LT" / lethal-
time-style quantity, e.g. p = 0.5 gives the absolute 50% survival time).
To obtain the curve's relative midpoint, use p = (low + up) / 2; that
crossing has log10(duration) = mid exactly.
derive_lt(object, p = 0.5, temp, group = NULL)
object |
A |
p |
Absolute target survival probability in |
temp |
Numeric temperature(s) at which to solve. If |
group |
Optional single group level (grouped fits only). Required when the fit is grouped. |
The selected curve maps the normalized fraction (p - low) / (up - low)
back to eta = k * (log10(duration) - mid). The log-logistic, log-normal,
and both Weibull curves use their own inverse map; all return log10(duration)
relative to the common midpoint.
The target must lie strictly between low and up for a finite crossing;
otherwise the survival curve never reaches p and derive_lt() aborts with
an explanatory message (confidence-language, never silent).
A vector of p values may be supplied, one for each temperature. Temperature-
varying shape formulas and a freq_tls workflow fit are supported.
For a random-effects fit this is a population-level derived quantity; it does
not add a group BLUP (best linear unbiased predictor; see ranef()).
A numeric vector of durations (same length as temp) in the fitted
duration unit; standardize_data() fits use minutes.
d <- simulate_tls(family = "binomial", times = c(30, 60, 120, 240, 480),
CTmax = 36, z = 4, tref = 60, seed = 1)
fit <- fit_tls(d, y = survived, n = total, time = duration, temp = temp,
family = "binomial", tref = 60)
# Absolute 50% survival duration at 36 C:
derive_lt(fit, p = 0.5, temp = 36)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.