Description Usage Arguments Details Author(s) Examples

View source: R/curve_constructors.R

This creates a RCurve object for a piecewise-linear recruitment distribution with a fixed (maximum) per-patient follow-up time.

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.

1 | ```
PieceRMaxF(recruitment, ratio, maxF)
``` |

`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. |

`maxF` |
Fixed follow-up time per patient, i.e. maximum time a patient will be at risk independent of length of study. |

This RCurve is used when it is expected that patients enter a trial at a rate that varies over time and there is a fixed maximum follow-up time per patient.

James Bell

1 2 3 | ```
rmatrix <- matrix(c(rep(4,3),5,10,15),ncol=2)
rmatrix
PieceRMaxF(recruitment=rmatrix,ratio=1,maxF=12)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.