|
21 | 21 | #' Based on piecewise enrollment rate, failure rate, and dropout rates computes
|
22 | 22 | #' approximate information and effect size using an average hazard ratio model.
|
23 | 23 | #'
|
24 |
| -#' @param enroll_rate Enrollment rates. |
25 |
| -#' @param fail_rate Failure and dropout rates. |
| 24 | +#' @param enroll_rate Enrollment rates from \code{define_enroll_rate()}. |
| 25 | +#' @param fail_rate Failure and dropout rates from \code{define_fail_rate()}. |
26 | 26 | #' @param ratio Experimental:Control randomization ratio.
|
27 | 27 | #' @param event Targeted minimum events at each analysis.
|
28 | 28 | #' @param analysis_time Targeted minimum study duration at each analysis.
|
29 | 29 | #' @param interval An interval that is presumed to include the time at which
|
30 | 30 | #' expected event count is equal to targeted event.
|
31 | 31 | #'
|
32 |
| -#' @return A data frame with columns Analysis, Time, AHR, Events, theta, info, info0. |
33 |
| -#' `info`, and `info0` contain statistical information under H1, H0, respectively. |
34 |
| -#' For analysis `k`, `Time[k]` is the maximum of `analysis_time[k]` and the |
| 32 | +#' @return A data frame with columns `analysis`, `time`, `ahr`, `event`, `theta`, `info`, `info0`. |
| 33 | +#' The columns `info` and `info0` contain statistical information under H1, H0, respectively. |
| 34 | +#' For analysis `k`, `time[k]` is the maximum of `analysis_time[k]` and the |
35 | 35 | #' expected time required to accrue the targeted `event[k]`.
|
36 |
| -#' `AHR` is the expected average hazard ratio at each analysis. |
| 36 | +#' `ahr` is the expected average hazard ratio at each analysis. |
37 | 37 | #'
|
38 | 38 | #' @section Specification:
|
39 | 39 | #' \if{latex}{
|
|
43 | 43 | #' \item Validate if inputs event and analysis_time have the same length if they are both specified.
|
44 | 44 | #' \item Compute average hazard ratio:
|
45 | 45 | #' \itemize{
|
46 |
| -#' \item If analysis_time is specified, calculate average hazard ratio using \code{AHR()}. |
| 46 | +#' \item If analysis_time is specified, calculate average hazard ratio using \code{ahr()}. |
47 | 47 | #' \item If event is specified, calculate average hazard ratio using \code{expected_time()}.
|
48 | 48 | #' }
|
49 | 49 | #' \item Return a data frame of Analysis, Time, AHR, Events, theta, info, info0.
|
|
67 | 67 | #' # Only put in targeted events
|
68 | 68 | #' gs_info_ahr(event = c(30, 40, 50))
|
69 | 69 | #' }
|
70 |
| -#' # Example 2 ---- |
71 | 70 | #'
|
| 71 | +#' # Example 2 ---- |
72 | 72 | #' # Only put in targeted analysis times
|
73 | 73 | #' gs_info_ahr(analysis_time = c(18, 27, 36))
|
74 | 74 | #'
|
|
0 commit comments