| plot_confidence_eye | R Documentation |
plot_confidence_eye() draws the freqTLS Confidence Eye for one or more
parameters (CTmax, z, or any other confint.profile_tls()
target, including grouped names). It is a horizontal forest display: each
parameter (and group level) is a row, the parameter value runs along the
x-axis, and the confidence interval is a short, wide pale lens with a
hollow point estimate. The shallow horizontal lens reads as a confidence
interval. The layout follows the gllvmTMB / drmTMB
Confidence-Eye contract.
plot_confidence_eye(
fit,
parm = c("CTmax", "z"),
method = c("profile", "wald", "bootstrap"),
level = 0.95,
style = c("eye", "line"),
raw_data = FALSE,
annotate = FALSE,
legend = FALSE,
fallback = TRUE,
nboot = 1000L,
boot_seed = NULL,
cores = 1L,
...
)
fit |
A |
parm |
Character vector of target parameter names. Defaults to
|
method |
One of |
level |
Confidence level (default |
style |
One of |
raw_data |
Logical; overlay observed assay temperatures as a rug on
temperature-scale rows (default |
annotate |
Logical; add the plot title (default |
legend |
Logical; show the interval-status legend (default |
fallback, nboot, boot_seed, cores |
Forwarded to |
... |
Reserved; must be empty. |
When a profile does not close (conf.status is "open_lower",
"open_upper", "open_both", or a bound is NA), no lens is drawn for that
row: a hollow point marks the estimate and the subtitle flags the open
interval. The eye is never fabricated from an open profile. A
"wald_fallback" interval (e.g. up) still gets a lens, with the source
noted in the caption. Rows from non-monotone, failed, or optimizer-mismatched
profiles are shown in orange with a status note; inspect conf.status and the
profile curve before interpreting them.
With raw_data = TRUE, the observed assay temperatures are drawn as a rug
beneath a temperature-scale row (CTmax). This optional diagnostic shows the
data support and flags extrapolation when CTmax sits outside the assayed
range; it is off by default because assay temperatures do not support z.
Parameters on different scales (temperature for CTmax, a positive
multiplier for z) are stacked in separate panels with a free x-axis.
A ggplot object.
d <- simulate_tls(family = "binomial", times = c(30, 60, 120, 240, 480),
CTmax = 36, z = 4, tref = 60, seed = 1)
fit <- fit_tls(d, y = survived, n = total, time = duration, temp = temp,
family = "binomial", tref = 60)
plot_confidence_eye(fit, parm = c("CTmax", "z"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.