plot_mc_error: Plot Monte Carlo error

View source: R/diagnostic_plots.R

plot_mc_errorR Documentation

Plot Monte Carlo error

Description

Displays the 95\ of simulated trials increases. Decreasing curves indicate improving precision; a curve that has not flattened may require a larger nsim.

Usage

plot_mc_error(x, display = "all", overall = FALSE, endpoint = "Total", ...)

Arguments

x

A simss, simpower, or simpower_curve object, or a list of such objects. A list can compare simulations with different n and nsim values.

display

Comparator names to display, or "all".

overall

Logical. If TRUE, display only the ⁠All comparators⁠ aggregate result. This is useful for assessing the overall decision when several comparisons are required; display is ignored in this mode.

endpoint

Endpoint names to display. The default, "Total", shows only the aggregate endpoint. Use "all" to show all retained endpoints.

...

Unused additional arguments.

Value

A ggplot object.


SimTOST documentation built on Oct. 9, 2026, 5:07 p.m.