PieceR {gestate} | R Documentation |
PieceR RCurve constructor function
Description
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.
Usage
PieceR(recruitment, ratio)
Arguments
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. |
Details
This RCurve is used when it is expected that patients enter a trial at a rate that varies over time.
Author(s)
James Bell
Examples
rmatrix <- matrix(c(rep(4,3),5,10,15),ncol=2)
rmatrix
PieceR(rmatrix,1)
[Package gestate version 1.6.0 Index]