plot.simss {SimTOST}R Documentation

Plot Power vs Sample Size for Simulation Results

Description

Generates a detailed plot showing the relationship between power and total sample size for each comparator and the overall combined comparators. The plot also includes confidence intervals for power estimates and highlights the target power with a dashed line for easy visual comparison.

Usage

## S3 method for class 'simss'
plot(x, ...)

Arguments

x

An object of class simss containing simulation results.

...

Additional arguments to be passed to the plot.simss function for customization.

Details

The plot dynamically adjusts to exclude unnecessary components, such as redundant endpoints or comparators with insufficient data, ensuring clarity and simplicity. The ggplot2 framework is used for visualizations, allowing further customization if needed.

Value

A ggplot object illustrating:

Author(s)

Johanna Muñoz johanna.munoz@fromdatatowisdom.com


[Package SimTOST version 1.0.2 Index]