| ts_curve | R Documentation |
Median LT-vs-temperature line from a two-stage fit
ts_curve(stage2, temp_grid, time_multiplier = 1)
stage2 |
Output of |
temp_grid |
Temperatures (°C) to evaluate. |
time_multiplier |
Multiplier to minutes. Default 1. |
A tibble with temp and duration_median (minutes).
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.