| eAccrual | R Documentation |
eAccrual() computes the expected cumulative enrollment (accrual)
given a set of piecewise constant enrollment rates and times.
eAccrual( x = 0:24, enrollRates = tibble(duration = c(3, 3, 18), rate = c(5, 10, 20)) )
x |
times at which enrollment is to be computed. |
enrollRates |
Piecewise constant enrollment rates expressed as a |
A vector with expected cumulative enrollment for the specified times.
The contents of this section are shown in PDF user manual only.
library(tibble)
# Example 1: default
eAccrual()
# Example 2: unstratified design
eAccrual(x = c(5, 10, 20),
enrollRates = tibble(duration = c(3, 3, 18), rate = c(5, 10, 20)))
eAccrual(x = c(5, 10, 20),
enrollRates = tibble(duration = c(3, 3, 18), rate = c(5, 10, 20),
Stratum = "All"))
# Example 3: stratified design
eAccrual(x = c(24, 30, 40),
enrollRates = tibble(Stratum=c("subgroup", "complement"),
duration = 33,
rate = c(30, 30)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.