Displays cumulative achieved power over simulated trials. A stable curve approaches a horizontal plateau, while large late movements indicate that more simulations may be needed.

plot_stability(x, target_power = 0.8, display = "all", overall = FALSE, ...)

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.

target_power

Target power shown as a horizontal reference line.

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.

...

Unused additional arguments.

Value

A ggplot object.