fit_weibull: Fit a four-parameter Weibull thermal-survival curve

View source: R/fit_curves.R

fit_weibullR Documentation

Fit a four-parameter Weibull thermal-survival curve

Description

Fits the same response likelihoods, direct CTmax/z coordinates, and shape designs as fit_tls(), with a midpoint-centred Weibull mean curve. Type 1 is Gompertz-shaped on log time; type 2 is inverse-Weibull (Frechet). Both use mid for the halfway point between low and up. The normalized midpoint slope magnitude is k * log(2) / 2, so the interpretation of k is curve-specific.

Usage

fit_weibull(..., type = 1, curve = NULL)

Arguments

...

Arguments forwarded to fit_tls(), including either its column or formula interface. The curve is fixed by type.

type

Integer 1 (default) for Weibull type 1 or 2 for Weibull type 2.

curve

Do not supply. This fitter selects the curve from type.

Value

A profile_tls maximum-likelihood fit from fit_tls().

Examples

d <- simulate_tls(family = "binomial", curve = "weibull2",
                  CTmax = 36, z = 4, seed = 1)
fit <- fit_weibull(
  d, type = 2, y = survived, n = total, time = duration, temp = temp,
  family = "binomial", tref = 1
)
fit$curve

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