| get_tls_est | R Documentation |
tls objectPulls the posterior draws or the summary (median + 95% credible interval)
for any or all thermal-load-sensitivity quantities (z, CTmax, and, when the
fit was extracted with lethal = TRUE, Tcrit) from a tls() result. Draws
are returned in tidy-long form (quantity, .draw, value, plus any grouping
column), so a posterior contrast is a join on .draw followed by a difference
of value.
get_tls_est(x, what = c("summary", "draws"), params = NULL)
x |
A |
what |
Either |
params |
Optional character vector selecting quantities to return, matched
case-insensitively against |
A tibble. For what = "summary": columns quantity, median,
lower, upper (plus grouping columns for a grouped fit). For
what = "draws": columns quantity, .draw, value (plus grouping
columns).
tls(), which produces the object this reads.
## Not run:
fit <- fit_4pl(standardize_data(my_data, temp = "temp", duration = "time",
n_total = "n", n_dead = "dead"))
est <- tls(fit, lethal = TRUE)
get_tls_est(est, "summary") # all quantities: median + 95% CrI
zd <- get_tls_est(est, "draws", "z") # z draws, ready for a contrast
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.