View source: R/predict_heat_injury.R
| survival_from_dose | R Documentation |
Inverts the dose interpretation: at dose = 1, survival equals the
threshold by construction. The 4PL maps dose smoothly to survival on the
reference dose-response curve.
survival_from_dose(
dose,
low,
up,
k,
target_surv = "relative",
model = "log-logistic"
)
dose |
Numeric vector of cumulative doses (in units where 1 dose = 1 LT-dose at the chosen threshold). |
low, up, k |
4PL parameters at the reference (centring) temperature. |
target_surv |
Either the literal probability defining "1 dose" or the
string |
model |
The dose-response model: a name (default
|
Numeric vector of predicted survival probabilities. NA for every
element when a numeric target_surv lies outside (low, up) and is
therefore unreachable on this draw's 4PL (mirrors
time_to_surv_threshold_4pl(), so the draw drops cleanly rather than
producing log()-of-negative NaNs that would poison the trace).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.