Skip to content

Commit 590a22f

Browse files
committed
update the spec
1 parent 3739678 commit 590a22f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

R/gs_info_ahr.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@
2121
#' Based on piecewise enrollment rate, failure rate, and dropout rates computes
2222
#' approximate information and effect size using an average hazard ratio model.
2323
#'
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()}.
2626
#' @param ratio Experimental:Control randomization ratio.
2727
#' @param event Targeted minimum events at each analysis.
2828
#' @param analysis_time Targeted minimum study duration at each analysis.
2929
#' @param interval An interval that is presumed to include the time at which
3030
#' expected event count is equal to targeted event.
3131
#'
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
3535
#' 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.
3737
#'
3838
#' @section Specification:
3939
#' \if{latex}{
@@ -43,7 +43,7 @@
4343
#' \item Validate if inputs event and analysis_time have the same length if they are both specified.
4444
#' \item Compute average hazard ratio:
4545
#' \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()}.
4747
#' \item If event is specified, calculate average hazard ratio using \code{expected_time()}.
4848
#' }
4949
#' \item Return a data frame of Analysis, Time, AHR, Events, theta, info, info0.
@@ -67,8 +67,8 @@
6767
#' # Only put in targeted events
6868
#' gs_info_ahr(event = c(30, 40, 50))
6969
#' }
70-
#' # Example 2 ----
7170
#'
71+
#' # Example 2 ----
7272
#' # Only put in targeted analysis times
7373
#' gs_info_ahr(analysis_time = c(18, 27, 36))
7474
#'

0 commit comments

Comments
 (0)