Learn R Programming

gestate (version 1.3.2)

RCurve-class: RCurve Class for defining recruitment distributions

Description

This class extends the Curve class, adding recruitment-related quantities such as patient numbers.

Arguments

Slots

N

Total number of patients recruited.

Nactive

Number of patients recruited in active arm. Nactive+Ncontrol=N.

Ncontrol

Number of patients recruited in control arm. Nactive+Ncontrol=N.

Ratio

Randomisation ratio. Nactive divided by Ncontrol = Ratio.

Length

Total length of the recruitment period.

RF

Name of the random generator function describing the Curve.

paramno

Number of parameters required to define the distribution.

pnames

Names of parameters defining the distribution. Should be a vector of length paramno.

pnames

Values of parameters defining the distribution. Should be a list of length paramno.

Examples

Run this code
# NOT RUN {
new("RCurve", type="ExampleCurve",PDF="name_of_pdf_function", CDF="name_of_CDF_function",
RF="name_of_random_draw_function", paramno=2, pnames=c('param1','param2'),pvalue=list(1,2), 
N=100,Nactive=50,Ncontrol=40, Ratio=50/40, Length = 5)
# }

Run the code above in your browser using DataLab