Nothing
#' Fraction of the sample size enrolled by calendar time
#'
#' @param acc Output of \code{.acc_setup()}.
#' @param x Calendar times.
#' @return Numeric vector of enrolled fractions.
#' @noRd
.acc_frac <- function(acc, x) {
a <- acc$alpha
lo <- a[-length(a)]
hi <- a[-1L]
vapply(x, function(z) sum(acc$rho * pmax(pmin(z, hi) - lo, 0)), numeric(1))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.