View source: R/predict_survival_curves.R
| new_tdt_grid | R Documentation |
Constructs a newdata tibble covering all combinations of temps and
durations, adds the derived logd and temp_c columns the model needs,
and fills random-effect grouping columns with their first observed level
(these are marginalised out at prediction time via re_formula = NA).
new_tdt_grid(workflow, temps, durations, n_total = NULL, by = NULL)
workflow |
A |
temps |
Numeric vector of assay temperatures (°C). |
durations |
Numeric vector of exposure durations (same unit as the training data, typically hours). |
n_total |
Integer trials count for count families. |
by |
Optional moderator column(s) to cross with the temp x
duration grid (one block of rows per group, tagged in
|
A tibble with one row per (temp, duration) pair (per group when
by is supplied).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.