trialWeek {interim} | R Documentation |
Scheduling interim analyses in clinical trials
Description
Function trialWeek
determines the week of the trial in which a certain number p
of patients finished treatment.
Usage
trialWeek(t, p)
Arguments
t |
result of function |
p |
number of patients for which the week shall be determined. |
Details
trialWeek
is an auxilliary function required to assess the timing of interim analyses. It derives
the week of trial in which a certain number of patients finished treatment.
The output is required for function cross
, which includes the information into an existing Patients diagram.
Value
The week in which the number of patients is reached.
See Also
cross
for plotting results of function trialWeek
into an existing Patients diagram.
Examples
x=recruitment(nc=Inf,ns=Inf,cw=4,sw=2,sf=0.3,tb=4,en=400)
y=treatment(r=x,du=26,dr=convertedRate(0.3,52,26))
z=treatment(r=x,du=52,dr=0.3)
trialCourse(r=x,t1=y,t2=z)
trialWeek(t=y,p=100)
[Package interim version 0.8.0 Index]