You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/plot.sims.R
+19-6Lines changed: 19 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,23 @@
1
-
#' @title plot.simss
2
-
#' @description Plot of power vs sample size for all comparators and total of comparators
1
+
#' @title Plot Power vs Sample Size for Simulation Results
2
+
#' @description Generates a detailed plot showing the relationship between power and total sample size for each comparator and the overall combined comparators.
3
+
#' The plot also includes confidence intervals for power estimates and highlights the target power with a dashed line for easy visual comparison.
3
4
#'
4
-
#' @param x Object type simss
5
-
#' @param \ldots Additional arguments which are passed to simss object.
5
+
#' @param x An object of class `simss` containing simulation results.
6
+
#' @param \ldots Additional arguments to be passed to the `plot.simss` function for customization.
7
+
#'
8
+
#' @return A `ggplot` object illustrating:
9
+
#' - Power (y-axis) vs. Total Sample Size (x-axis) for individual endpoints and comparators.
10
+
#' - Error bars representing the 95% confidence interval of the power estimates.
11
+
#' - A dashed horizontal line indicating the target power for comparison.
12
+
#' - Faceted panels for each comparator, making it easy to compare results across different groups.
13
+
#'
14
+
#' @details
15
+
#' The plot dynamically adjusts to exclude unnecessary components, such as redundant endpoints or comparators with insufficient data, ensuring clarity and simplicity.
16
+
#' The `ggplot2` framework is used for visualizations, allowing further customization if needed.
Copy file name to clipboardExpand all lines: vignettes/sampleSize_parallel_3A1E.Rmd
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -126,12 +126,13 @@ Key Considerations:
126
126
127
127
We proceed similarly to the initial example, modifying the `list_comparator` to include multiple comparators. In this case, the list contains two elements specifying the simultaneous comparison between SB2 vs. RemEU and SB2 vs. RemUSA. This approach ensures that the equivalence assessment accounts for both reference products.
128
128
129
+
Additionally, we must specify equivalence boundaries for each comparison individually. These boundaries define the acceptable range for equivalence and are provided separately for each comparator.
0 commit comments