| plot_curvature | R Documentation |
Three-panel visualisation of dose-varying fragility: (1) effect curve with CI bands and fragility zones, (2) local fragility index, (3) normalised curvature.
plot_curvature(x, estimand = "NIE", ref_dose = NULL, ...)
x |
Data frame from |
estimand |
Label for the estimand. Default |
ref_dose |
Optional reference dose vertical line. |
... |
Ignored. |
A ggplot2 object.
data(sim_mediation)
fit <- robustmediate(
X ~ Z1 + Z2, M ~ X + Z1 + Z2, Y ~ X + M + Z1 + Z2,
data = sim_mediation, R = 20, verbose = FALSE
)
curv <- sensitivity_curvature(fit)
plot_curvature(curv, ref_dose = fit$meta$ref_dose)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.