Skip to content

Commit 4a05474

Browse files
Merge pull request #511 from jdblischak/add-back-sop-specs
Add back recently deleted SOP specs
2 parents 531381b + 1475dec commit 4a05474

File tree

9 files changed

+172
-60
lines changed

9 files changed

+172
-60
lines changed

R/gs_design_ahr.R

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,36 @@
7474
#' - The `$fail_rate` is a table showing the failure and dropout rates, which is the same as input.
7575
#' - The `$bound` is a table summarizing the efficacy and futility bound per analysis.
7676
#' - The `analysis` is a table summarizing the analysis time, sample size, events, average HR, treatment effect and statistical information per analysis.
77+
#'
78+
#' @section Specification:
79+
#' \if{latex}{
80+
#' \itemize{
81+
#' \item Validate if input analysis_time is a positive number or positive
82+
#' increasing sequence.
83+
#' \item Validate if input info_frac is a positive number or positive
84+
#' increasing sequence
85+
#' on (0, 1] with final value of 1.
86+
#' \item Validate if input info_frac and analysis_time have the same
87+
#' length if both have length > 1.
88+
#' \item Get information at input analysis_time
89+
#' \itemize{
90+
#' \item Use \code{gs_info_ahr()} to get the information and effect size
91+
#' based on AHR approximation.
92+
#' \item Extract the final event.
93+
#' \item Check if input If needed for (any) interim analysis timing.
94+
#' }
95+
#' \item Add the analysis column to the information at input analysis_time.
96+
#' \item Add the sample size column to the information at input analysis_time
97+
#' using \code{expected_accural()}.
98+
#' \item Get sample size and bounds using \code{gs_design_npe()} and
99+
#' save them to bounds.
100+
#' \item Add Time, Events, AHR, N that have already been calculated
101+
#' to the bounds.
102+
#' \item Return a list of design enrollment, failure rates, and bounds.
103+
#' }
104+
#' }
105+
#' \if{html}{The contents of this section are shown in PDF user manual only.}
106+
#'
77107
#' @export
78108
#'
79109
#' @details

R/gs_power_ahr.R

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@
5454
#' - If both `event[i]` and `analysis[i]` are provided for analysis `i`, then the time corresponding to the
5555
#' later of these is used for analysis `i`.
5656
#'
57+
#' @section Specification:
58+
#' \if{latex}{
59+
#' \itemize{
60+
#' \item Calculate information and effect size based on AHR approximation
61+
#' using \code{gs_info_ahr()}.
62+
#' \item Return a tibble of with columns Analysis, Bound, Z, Probability,
63+
#' theta, Time, AHR, Events and contains a row for each analysis
64+
#' and each bound.
65+
#' }
66+
#' }
67+
#' \if{html}{The contents of this section are shown in PDF user manual only.}
68+
#'
5769
#' @export
5870
#'
5971
#' @examples

man/fixed_design.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/gs_design_ahr.Rd

Lines changed: 50 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/gs_design_combo.Rd

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/gs_design_wlr.Rd

Lines changed: 13 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/gs_power_ahr.Rd

Lines changed: 49 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)