eAccrual: Piecewise constant expected accrual

Description Usage Arguments Value Specification Examples

View source: R/eAccrual.R

Description

eAccrual() computes the expected cumulative enrollment (accrual) given a set of piecewise constant enrollment rates and times.

Usage

1
2
3
4
eAccrual(
  x = 0:24,
  enrollRates = tibble::tibble(duration = c(3, 3, 18), rate = c(5, 10, 20))
)

Arguments

x

times at which enrollment is to be computed.

enrollRates

Piecewise constant enrollment rates expressed as a tibble with duration for each piecewise constant period and the rate of enrollment for that period.

Value

A vector with expected cumulative enrollment for the specified times.

Specification

The contents of this section are shown in PDF user manual only.

Examples

1
2
# Example: default
eAccrual()

evettek/ek-test documentation built on Dec. 20, 2021, 6:47 a.m.