| get_4pl_est | R Documentation |
The 4PL-shape companion to get_tls_est(). Returns the posterior of the
natural-scale 4PL curve parameters from a fitted fit_4pl() workflow, as
either per-draw values or a median + 95% credible-interval summary, per
moderator group. Whereas get_tls_est() operates on a tls() object and
returns the derived TLS quantities (z, CTmax, Tcrit), this operates on the
fitted workflow and returns the raw curve parameters those quantities are
derived from. A thin wrapper: "summary" calls tdt_parameter_table(),
"draws" calls extract_4pl_pars().
get_4pl_est(workflow, what = c("summary", "draws"), by = NULL, temps = NULL)
workflow |
A fitted |
what |
|
by |
Optional moderator column(s) to group by, passed through. |
temps |
For |
A tibble (plus the moderator column(s) for a grouped fit): for
"summary", one row per parameter with median and credible bounds at
T_bar; for "draws", one row per posterior draw × temperature with
temp, low, up, k, mid (and .draw).
get_tls_est() for the derived TLS quantities; tdt_parameter_table()
and extract_4pl_pars(), which this wraps.
## Not run:
wf <- fit_4pl(standardize_data(my_data, temp = "temp", duration = "time",
n_total = "n", n_dead = "dead"))
get_4pl_est(wf, "summary") # low/up/k/mid median + 95% CrI
get_4pl_est(wf, "draws", by = "species") # per-draw params, per group
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.