| RCurve-class {gestate} | R Documentation |
RCurve Class for defining recruitment distributions
Description
This class extends the Curve class, adding recruitment-related quantities such as patient numbers.
Slots
NTotal number of patients recruited.
NactiveNumber of patients recruited in active arm. Nactive+Ncontrol=N.
NcontrolNumber of patients recruited in control arm. Nactive+Ncontrol=N.
RatioRandomisation ratio. Nactive divided by Ncontrol = Ratio.
LengthTotal length of the recruitment period.
RFName of the random generator function describing the Curve.
inverseName of the inverse CDF function describing the Curve. Optional; set to NULL if unavailable.
paramnoNumber of parameters required to define the distribution.
pnamesNames of parameters defining the distribution. Should be a vector of length paramno.
pnamesValues of parameters defining the distribution. Should be a list of length paramno.
maxFMaximum length of patient follow-up. Typically should be Inf.
Author(s)
James Bell
Examples
new("RCurve", type="ExampleCurve",PDF="pdf_fn_name", CDF="CDF_fn_name",
RF="random_draw_fn_name", inverse="inv_fn_name", paramno=2, pnames=c('param1','param2'),
pvalue=list(1,2),
N=100,Nactive=50,Ncontrol=40, Ratio=50/40, Length = 5, maxF = Inf)