PieceR: PieceR RCurve constructor function

Description Usage Arguments Details Author(s) Examples

View source: R/curve_constructors.R

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

1
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

1
2
3
rmatrix <- matrix(c(rep(4,3),5,10,15),ncol=2)
rmatrix
PieceR(rmatrix,1)

gestate documentation built on Feb. 20, 2020, 5:08 p.m.