View source: R/curve_constructors.R
PieceR | R Documentation |
This creates a RCurve object for a piecewise-linear recruitment distribution.
RCurve objects contain all necessary information to describe a recruitment distribution. They are a particular type of Curve object containing additional recruitment-related information, including patient numbers and the randomisation ratio.
PieceR(recruitment, ratio)
recruitment |
2-column matrix with recruitment parameters. First column gives the lengths of each period of recruitment. Second column gives the corresponding rates of recruitment for each period. |
ratio |
Randomisation ratio; active arm divided by control arm. |
This RCurve is used when it is expected that patients enter a trial at a rate that varies over time.
James Bell
rmatrix <- matrix(c(rep(4,3),5,10,15),ncol=2)
rmatrix
PieceR(rmatrix,1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.