Add optional log-normal and midpoint-centred Weibull type 1 and
type 2 thermal-survival curves to fit_tls(),
simulate_tls(), prediction, threshold extraction, plotting,
and deterministic heat-injury prediction. The log-logistic curve remains
the default and the only configuration covered by the exact bayesTLS
benchmark-equivalence claim. Steepness k is
curve-specific.
Accept legacy tls(mode, p) threshold aliases,
quantity vectors including tcrit (with explicit
lethal = TRUE), preserve explicit quantity selection when
lethal = TRUE, and report recognized bayesTLS tuning
arguments that freqTLS cannot honor.
Make fit_4pl() and fit_tls() reject
Bayesian HMC settings such as adapt_delta and
max_treedepth, and validate the supported
nlminb optimizer-control names, value types, and ranges so
misspelled or malformed settings are not silently coerced. Both entry
points also reject non-logical trace values, accept
abs.tol = 0, and pass vector scale to the
correct nlminb() argument while requiring scalar
scale.init.
Support an explicit left-censored observation mechanism for the Beta family. Supply both a censor flag and an assay detection limit; zero values are not automatically censored. The pinned Snow-gum comparator remains an ordinary Beta fit and is not treated as evidence for a detection limit.
Support multiple additive independent random intercepts on
CTmax, with a separate variance per grouping factor. The
crossed plant/day implementation is tested on synthetic data; the
Snow-gum comparator remains plant-only.
Allow custom ordered asymptote bounds and fixed natural-scale
values for low and up, including the exact
fixed-asymptote 2PL. The default 4PL bounds and estimated asymptotes
remain unchanged. The bayesTLS-style lower and
upper arguments map individually to the endpoints of
bounds.
Add get_tls_est() for tls() summaries
and paired parametric-bootstrap refits. Explicit bootstrap extraction
returns draw-level frequentist estimates; automatic fallback from a
relative profile request returns interval limits and status without a
draw table. Empty quantity filters are rejected.
Add bayesTLS-style aliases to deterministic
heat-injury prediction for relative/absolute targets, T_c,
trace time units, repair parameters, and irreversible mortality. Fits
use minutes; an explicit trace unit converts to minutes, while the
default expects minute-valued trace time. Bayesian repair rates convert
from doses per hour to doses per minute.
Extend plot_tdt_curve() with target labels,
linear/log/both panels, and an optional fixed colour while preserving
its existing log-scale default.
Invert absolute survival thresholds for temperature-varying shape
formulas over the observed temperature range. Absolute-target bootstrap
intervals use converged refits whose asymptotes bracket the target;
temperature-varying shapes also need one detected crossing in range.
Intervals are conditional on these usable refits, which are counted in
extract_tdt() metadata and must number at least 20 per
fitted group. Unusable target inversions remain
NA.
Match independent shape profiles to each shape formula’s own factor order and route general continuous shape coefficients to link-scale Wald intervals; direct response-scale profiles for those coefficients now error clearly. Exact fixed asymptotes retain exact limits and are labeled as fixed.
Require exact Beta responses to respect declared detection limits, use censor bounds in data-adequacy checks, and reserve the binomial-limit warning for beta-binomial fits. Warn separately when every response in a fitted group is left-censored, even if other groups contain exact responses.
Direct Beta fitting now rejects an exact upper endpoint when the
endpoint clamp would move it below its declared detection limit.
Bootstrap summaries retain converged draws but withhold percentile
limits below 20 usable refits, and report requested, converged, failed,
and unusable counts. The weak-phi Wald route is described
as a heuristic based on design-specific evidence, not as a general
coverage guarantee.
Reject below-limit exact Beta values in
standardize_data() before its boundary clamp can turn them
into apparently valid exact observations. Use a saturation-safe inverse
logit and a log-prefactor continued fraction for very small valid
censoring limits, preserving finite likelihood Hessians. Evaluate
high-precision exact Beta densities with a stable deviance form that
retains accurate log_phi scores through
phi = 1e17.
Preserve exact interior Beta values and recorded left-censored placeholders during standardization. Bootstrap refits generate new responses and reapply declared detection limits with new censor flags; only exact 0/1 responses receive boundary clamping. Reject an upper-endpoint clamp that would cross its detection limit. Direct fitting likewise clamps only exact boundary rows.
Validate tls() interval methods before choosing
relative, absolute, or lethal extraction paths; correct profile-fallback
and 0.2.0 capability descriptions across the help, vignettes, README,
and design notes.
Print per-parameter interval methods and statuses for mixed
tls() summaries, and show how to inspect confidence status
separately from the Confidence Eye plot.
Validate extract_tdt() confidence levels and lethal
damage-rate ranges before running bootstrap refits; fixed rates remain
available by supplying equal range endpoints.
check_tls() and
tls().model.matrix() can drop rows, including the issue #67
failure path.duration_unit in
standardize_data(). Standardized durations and reference
times use minutes; fit_4pl() converts legacy standardized
data with a recorded non-minute unit and informs the user.T_crit at the one-hour reference and allow an
explicit target_surv in derive_tcrit().
Evaluate temperature-varying shapes row by row in lethal-time and
heat-injury predictions. derive_ctmax() and
extract_tdt() support bounded absolute-threshold inversion
when shape formulas vary with temperature.z coefficients as
natural-scale multipliers.tidy_parameters().tls() results a dedicated
freq_tls_summary print method and include the effective
low, up, and k formulas in
fit_4pl() output.extract_tdt()’s z
as the relative-midpoint thermal-sensitivity coordinate even when
CTmax uses an absolute target.invalid_center profile with bootstrap
limits: a non-zero deviance at the fitted estimate is a refit
inconsistency that needs inspection.proportion_eps as one finite number in
(0, 0.5) before clamping continuous proportions. Convert
mortality proportions by rounding survivors directly, matching the
pinned bayesTLS rule at half-integer ties; the R-SHRIMP reconstruction
retains its observed 0–11 deaths (738 total).The entries below describe documentation, teaching-data, and interface work added after the public freqTLS 0.1.0 package archive. They are not a record of the contents of the July 2026 CRAN artifact.
Updated citation to the bayesTLS framework preprint. Publications
should now cite the paper freqTLS implements: Noble DWA, Arnold PA,
Nakagawa S & Pottier P (2026), A flexible modelling framework
for estimating thermal tolerance and sensitivity, bioRxiv,
doi:10.64898/2026.07.16.738378, rather than a separate freqTLS R-package
self-citation. Shinichi Nakagawa is now credited as a co-author of that
framework across DESCRIPTION, the package documentation,
and inst/CITATION.
Added an .onAttach startup message
(R/zzz.R) that points users to the paper and
citation("freqTLS"), mirroring bayesTLS
(without the Stan/brms lines).
Rebased the empirical teaching plan on the pinned bayesTLS
supplement rendered 2026-07-14 (commit
76510412e06c594c96894a1baba1f0e1a34a5aea). Canonical cases
are oxygen-gradient zebrafish, cereal aphids, Snow-gum PSII, and the
mortality and awake/coma Drosophila suzukii endpoints.
Brown shrimp and life-stage zebrafish remain installed benchmark-only legacy fixtures but are removed from active examples, navigation, and current comparison surfaces.
Retained Beta responses, limited random intercepts, shape formulas, deterministic heat-injury prediction, the formula interface, and the frequentist interval/diagnostic displays as explicitly experimental.
Censored-time, hurdle-productivity, fitted repair dynamics, and CRAN submission remain out of scope.
Corrected formula starts so intercept models initialise only
their intercept while no-intercept cell-mean models initialise every
cell. Difficult fits may receive a deterministic nloptr
Newton refinement when it improves both the objective and maximum
gradient.
Added row-specific parameter prediction for interacted formula
designs via predict(..., type = "parameters"), including
freq_tls S3 dispatch.
Added the reviewed canonical bayesTLS comparator cache built on
Totoro from pinned bayesTLS commit 76510412, with exact
analysis hashes, sampler diagnostics, source versions, seeds, and a
public table of actual freqTLS-minus-bayesTLS differences. The
historical shrimp/life-stage cache remains internal legacy evidence
only.
standardize_data() now warns with the affected count
and epsilon whenever a continuous proportion is moved off 0 or 1 for the
Beta likelihood. The Snow-gum example makes its 90 adjusted values
explicit.
standardize_data() now converts recognised duration
inputs to minutes, and omitted tref / t_ref
therefore resolves to 60 minutes (one physical hour). Bare
formula/column data must already use minutes, so an ambiguous CTmax
reference is never silent.
get_ctmax(), get_z(), and
get_shape() now pass method = "wald" or
"profile" through to tidy_parameters() and
retain per-coordinate interval routing in
interval_type.
Refined the Confidence Eye into a minimal default: independently
scaled parameter panels, no default rug/legend/title, outlined interval
lenses, and an explicit opt-in diagnostic rug for CTmax.
Open profiles remain visibly hollow-only. The heat-injury article now
uses the licensed oxygen-gradient zebrafish assay fit with a clearly
hypothetical staged exposure scenario; deterministic prediction remains
distinct from fitted injury/repair dynamics.
Corrected public unit and threshold examples; validated
fit_4pl(p); improved column-interface errors to name an
unresolved data column; and added regression coverage for the R-SHRIMP
direct death reconstruction rule.
Corrected grouped contrast direction so dCTmax:A-B,
dlog_z:A-B, and dz:A-B now follow their
written meaning: group A minus group B.
freqTLS is the frequentist counterpart to the Bayesian
bayesTLS package: it fits the four-parameter logistic
thermal-load-sensitivity (thermal death-time) model by maximum
likelihood via TMB, parameterised directly in CTmax and thermal
sensitivity (z). Under the matched relative-threshold, constant-shape
configuration, it targets the same fitted curve as
bayesTLS; uncertainty is reported through three frequentist
methods: Wald (delta), profile-likelihood, and bootstrap, instead of a
posterior. Forked from profileTLS (commit
6f963a9, v0.3.3), which it supersedes.
standardize_data(): the shared raw-data entry point for
count or continuous-proportion responses (adopted from bayesTLS).fit_4pl() + make_4pl_formula(): the direct
CTmax/z formula interface
(ctmax/z/up/low/k/by,
plus threshold, t_ref, bounds,
family), fitted by maximum likelihood through the TMB
engine; returns a freq_tls workflow object.tls() / tls_z() / tls_ctmax()
/ tls_tcrit(): z, CTmax, and T_crit with confidence
intervals at the relative midpoint, the absolute (LT50) threshold, or
any LTx.extract_tdt() with get_z_* /
get_ctmax_* / get_tcrit_* accessors: the
nested z / CTmax / T_crit structure, with parametric-bootstrap
replicates as the frequentist analogue of posterior draws.predict_survival_curves(): the fitted survival surface
with bootstrap bands.diagnose_tdt_fit() and
tdt_parameter_table(): convergence diagnostics
(optimiser/Hessian/gradient) and the 4PL parameter table.two_stage (ts_stage1() /
ts_stage2() / ts_ci() /
ts_curve()): the classical two-stage comparator, reporting
both normal and small-sample t intervals.plot_confidence_eye(),
plot_survival_curves(), plot_tdt_curve(),
plot_heat_injury()) and extractors accept the
freq_tls workflow object.aphid_tdt and
zebrafish_o2; the active teaching set and legacy boundary
are listed above.CTmax interval
covered 0.927 of 494 usable fits; the t(df = n − p) Wald interval
covered 0.964. Monte Carlo SE was 0.010. This is one simulated design,
not a general coverage guarantee. The design and results are recorded in
data-raw/calibration-study.R and
inst/extdata/calibration_results.rds.data-raw/benchmark-vs-bayes.R, not installed): freqTLS
reproduces bayesTLS’s CTmax to ~0.07 °C on the brown-shrimp data, beside
the classical two-stage estimator.confint(), summary(),
ranef(), and
coef()/logLik()/vcov()/nobs(),
the heat-injury functions (predict_heat_injury() /
plot_heat_injury() / heat_injury_envelope()),
and check_tls() all accept the freq_tls
workflow object. This listed post-fit surface works on the
fit_4pl() result.fit_4pl(by = "g") now labels groups by the bare factor
levels (CTmax:young_embryos), identical to the column
interface, end to end.comparing-to-bayesTLS carries the live + cached
comparison.scripts/simulations/ contains a freqTLS (ML/TMB) analogue
of the bayesTLS two-stage-bias simulation (shared data-generating
process + scoring), with a comparison to the bayesTLS results. These
maintainer scripts and their DRAC launcher are not installed with the
package.compute_4pl_bounds); up is
now a direct coordinate.