derive_tcrit: Derive the critical temperature at a damage-rate floor...

View source: R/predict.R

derive_tcritR Documentation

Derive the critical temperature at a damage-rate floor (T_crit)

Description

derive_tcrit() returns the rate-multiplier critical temperature T_crit: the temperature at which the thermal-damage rate falls to a chosen low floor rate. It is the maximum-likelihood analogue of the bayesTLS extract_tdt() absolute-family T_crit. It first expresses the requested survival threshold at one hour, then applies the rate floor: T_crit = CTmax - z * log10(60 / tref) + z * eta_curve((target_surv - low) / (up - low)) / k + z * log10(rate / 100). The inverse uses the selected curve family, including the log-logistic default. At rate = 100, the result is the one-hour temperature at target_surv. Lower rates place T_crit below that one-hour threshold for constant shapes. For temperature-varying shapes, freqTLS instead solves for a unique crossing at the equivalent exposure 60 * 100 / rate minutes inside the observed temperature range. It is the temperature cutoff that a heat-injury accumulation model treats as negligible damage.

Usage

derive_tcrit(object, rate = 1, group = NULL, target_surv = NULL, cell = NULL)

Arguments

object

A profile_tls fit from fit_tls().

rate

Damage-rate floor(s), a percentage of the lethal dose per hour (strictly positive). A scalar or a vector; default 1.

group

Optional single group level (grouped fits only; required when the fit is grouped).

target_surv

One survival probability strictly between the fitted asymptotes. NULL (default) selects the relative midpoint.

cell

Optional named list of one-row predictor values for a general formula design whose CTmax cells combine source columns. For an absolute inversion, omit temp, temp_c, and the source column named in temp(); the inversion sets those from its candidate temperature.

Details

rate is a damage-rate floor expressed as a percentage of the lethal dose per hour; bayesTLS brackets observed breakpoints with a default range of 0.1–1 %/hour. Unlike the Bayesian path, which samples rate to fold an operational choice into the posterior, freqTLS treats rate as a fixed input and returns the deterministic transform of the fitted CTmax and z. target_surv defaults to the fitted relative midpoint (low + up) / 2; supply one probability strictly between the fitted asymptotes for an absolute threshold. For the default relative target, uncertainty depends on CTmax and z. For an explicit absolute target_surv, it also depends on low, up, and k. Apply the delta method to the joint covariance matrix of every parameter in the selected expression; separate marginal confidence intervals do not combine into a valid interval for T_crit. Relative T_crit remains defined for temperature-varying shapes because the midpoint correction is zero. An explicit absolute target uses a bounded root search and errors when the observed range does not contain exactly one crossing. 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()).

T_crit assumes a lethal endpoint: it is a damage-accumulation concept, so for sublethal endpoints (knockdown, photosynthetic failure) the steeper z drives it implausibly low. derive_tcrit() says so, once per call.

Value

A numeric vector of critical temperatures (degrees C), one per rate.

See Also

derive_ctmax() for the absolute-threshold critical temperature.

Examples

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)
derive_tcrit(fit, rate = c(0.1, 1)) # lower thermal thresholds

freqTLS documentation built on Dec. 4, 2026, 5:11 p.m.