Learn R Programming

gestate (version 1.3.2)

LinearR: LinearR RCurve constructor function

Description

This creates a RCurve object for a 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

LinearR(rlength, Nactive, Ncontrol)

Arguments

rlength

Length of recruitment.

Nactive

Number of patients recruited in active arm.

Ncontrol

Number of patients recruited in active arm.

Details

This RCurve is used when it is expected that patients enter a trial at a constant rate until the required number is achieved.

Examples

Run this code
# NOT RUN {
LinearR(rlength=12,Nactive=100,Ncontrol=100)
# }

Run the code above in your browser using DataLab