Skip to content

Commit

Permalink
Use plural for rates and ratios when appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
nanxstats committed Jan 12, 2024
1 parent 9ca5578 commit 7d730d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions R/define.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#' \eqn{t_i - t_{i-1}}, where \eqn{0 = t_0 < t_i < \cdots < t_M = \infty}.
#' The enrollment rates are defined in each duration with the same length.
#'
#' For a study with multiple strata, different duration and rate can be
#' For a study with multiple strata, different duration and rates can be
#' specified in each stratum.
#'
#' @param duration A numeric vector of ordered piecewise study duration interval.
Expand Down Expand Up @@ -88,7 +88,7 @@ define_enroll_rate <- function(
#' Define failure rate
#'
#' Define subject failure rate for a study with two treatment groups.
#' Also supports stratified designs that have different failure rate in
#' Also supports stratified designs that have different failure rates in
#' each stratum.
#'
#' @details
Expand All @@ -99,8 +99,8 @@ define_enroll_rate <- function(
#' The failure rate, dropout rate, and hazard ratio in a study duration
#' can be specified.
#'
#' For a study with multiple strata, different duration, failure rate,
#' dropout rate, and hazard ratio can be specified in each stratum.
#' For a study with multiple strata, different duration, failure rates,
#' dropout rates, and hazard ratios can be specified in each stratum.
#'
#' @param duration A numeric vector of ordered piecewise study duration interval.
#' @param fail_rate A numeric vector of failure rate in each `duration` in the control group.
Expand Down
2 changes: 1 addition & 1 deletion man/define_enroll_rate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/define_fail_rate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7d730d0

Please sign in to comment.