| get_tls_est | R Documentation |
Return the summary or long-format parametric-bootstrap replicates from a
tls() result. Draw-level values are available when tls() used
method = "bootstrap", requested an absolute threshold, or selected
T_crit. Setting lethal = TRUE without selecting T_crit does not by
itself return draws. An automatic bootstrap fallback from a relative profile request returns
interval limits, method, and status, not draw-level values. Draws are
frequentist bootstrap refits, not posterior draws.
get_tls_est(x, what = c("summary", "draws"), params = NULL)
x |
A |
what |
"summary" (default) or "draws". |
params |
Optional case-insensitive quantity names such as "z", "CTmax", or "Tcrit". Every requested name must be present in the result. |
A tibble. Summary output contains quantity, median, lower, and
upper, plus grouping columns. Draw output contains grouping columns,
.draw, value, quantity, and .valid for absolute-threshold refits.
d <- simulate_tls(family = "binomial", times = c(30, 60, 120, 240, 480),
CTmax = 36, z = 4, tref = 60, seed = 1)
std <- standardize_data(d, temp = "temp", duration = "duration",
n_total = "total", n_surv = "survived", duration_unit = "minutes")
fit <- fit_4pl(std, family = "binomial", method = "bootstrap", quiet = TRUE)
estimates <- tls(fit, nboot = 20, seed = 1)
get_tls_est(estimates, what = "draws", params = "CTmax")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.