ts_curve: Median LT-vs-temperature line from a two-stage fit

View source: R/two_stage.R

ts_curveR Documentation

Median LT-vs-temperature line from a two-stage fit

Description

Median LT-vs-temperature line from a two-stage fit

Usage

ts_curve(stage2, temp_grid, time_multiplier = 1)

Arguments

stage2

Output of ts_stage2().

temp_grid

Temperatures (°C) to evaluate.

time_multiplier

Multiplier to minutes. Default 1.

Value

A tibble with temp and duration_median (minutes).

Examples

d <- data.frame(
  temp = rep(c(30, 34, 38), each = 12),
  dur  = rep(c(1, 5, 15, 45), times = 9),
  surv = rbinom(36, 20, 0.4), tot = 20)
ts_curve(ts_stage2(ts_stage1(d, "temp", "dur", "surv", "tot")),
         temp_grid = seq(30, 38, 1))

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