View source: R/distribution_plots.R
| plot_distribution | R Documentation |
Creates density, histogram, ECDF, or Q–Q plots for a selected
trial-level quantity. The estimand argument selects an arm parameter, a
reconstructed TOST statistic, a continuous comparison, a count rate ratio,
or endpoint correlations.
plot_distribution(x, estimand = "mu", arms = NULL, endpoints = NULL, ...)
x |
A result returned by |
estimand |
Quantity to display: |
arms |
Optional character vector of arm names. For |
endpoints |
Optional character vector of endpoint names. If |
... |
Optional plotting controls, including |
Every comparator follows the package
convention c(test, reference). For t_value, the lower
and upper TOST statistics are reconstructed from the retained outcomes
using the same continuous parallel formulas as the test. The dashed lines
are the corresponding one-sided critical values. The plotted DOM is
test - reference
and the plotted ROM is test / reference; reversing the comparator reverses
the displayed estimand. The plotted RR is rate_test / rate_reference.
A ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.