NEWS.md

bayesTLS 1.3.0

This is the first CRAN update since 1.0.0. Versions 1.1.0 and 1.2.0 were released on GitHub only, so their changes (listed below) are also new on CRAN.

New features

Bug fixes

Documentation

bayesTLS 1.2.0

New features

Bug fixes

The varying shape now offers two coherent methods, chosen with the new argument varying_method: "individual" (default), where each individual accumulates heat injury additively against its own threshold time, and "cumulative", cumulative exposure with survival as the state (the rule used by Rezende et al. 2020 and Bullard et al. 2026; given the same curves it reproduces Bullard et al.'s code up to the time step). Both reproduce the fitted curve at any constant temperature and both equal the constant shape exactly when low, up and k do not change with temperature and mid is linear in it, with or without repair; they differ otherwise, because constant-temperature data cannot say why the shape changes. Heat injury is the same under both unless repair scales with survival (for an absolute target, the injury of the individual of that rank; Inf, with a warning, while injury accrued where the target is already passed is outstanding). Both read a lower up at a temperature as individuals that die on exposure there, permanently even with reversible mortality; under cumulative exposure a temperature whose floor is at or above survival adds no injury. Survival starts at up of the first temperature that accrues injury (above T_c; a trace that accrues none keeps the constant shape's value), and repair_scales_with_survival scales repair by survival over that up, a factor never above 1. The help page sets out both methods and their assumptions, and the shape is marked experimental. Varying-shape results change for fits whose low, up or k change with temperature, for any fit with repair and irreversible mortality, and for absolute targets outside a draw's curve at some trace temperature. predict_heat_injury() now reports in meta$ndraws the posterior draws that produced a prediction, and warns when any did not (for example, an absolute target outside a draw's curve at the centring temperature). Such draws are now left out of every summary column, and draws keeps them as rows of NA: before, the count reported was the number requested, the draws were dropped silently, and with repair_scales_with_survival = FALSE their heat injury still entered the summary as 0. For a grouped fit, meta$ndraws is the smallest count in any group and the new meta$ndraws_by_group gives each group's count. tls() now reads a workflow's own asymptote bounds (the ones it was fitted with) when it computes absolute thresholds, as derive_z() and the other readers already did. Before, it always used the default [0, 1] bounds, so absolute-threshold summaries of a workflow fitted with other bounds (e.g. lower = 0.85 for photosystem-II data) were wrong without warning; relative thresholds were never affected. Fits with the default bounds, including all of the paper's, give identical results. lower and upper still override, and are still used for a bare brmsfit.

bayesTLS 1.1.0

New features

bayesTLS 1.0.0

First release.

bayesTLS fits joint Bayesian four-parameter logistic (4PL) models to thermal-tolerance data and derives the classical thermal death time / thermal load sensitivity quantities from the posterior, so that every downstream quantity carries full uncertainty and is mutually consistent within a draw.

Model fitting

Deriving thermal load sensitivity

Prediction under fluctuating temperatures

Two-stage comparison

Plotting and diagnostics

Data

Four publicly available example datasets spanning lethal and sub-lethal endpoints: aphid_tdt, dsuzukii, snowgum_psii and zebrafish_o2.



Try the bayesTLS package in your browser

Any scripts or data that you put into this service are public.

bayesTLS documentation built on Nov. 29, 2026, 1:06 a.m.