interim (version 0.8.0)

cross: Scheduling interim analyses in clinical trials

Description

Function cross plots two cossing lines into the patients diagram .

Usage

cross(w, p)

Arguments

w

week where the vertical line is plotted.

p

number of patients where the horizontal line is plotted.

Details

This function includes a vertical and horizontal line into an existing patient diagram produced by function trialCourse or into an existing event diagram produced by function evenCourse.

The lines are to mark the timepoint w in weeks at which a required number of patients or events p has finished their treatment or occured as first events, respectivley. The display can be used to assess the scheduling of interim analyses.

The auxilliary functions trialWeek or eventWeek can be used to derive the week of the trial in which the required number of patients has finished the treatment or events occured.

See Also

trialCourse for plots of recruitment and treatment scenarios; trialWeek for deriving the week of a trial at which a certain number of patients finished treatment. eventCourse for plots of recruitment and event scenarios; eventWeek for deriving the week of a trial at which a certain number of event occured.

Examples

Run this code
# NOT RUN {
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)
cross(w=trialWeek(t=y,p=100),p=100)
# }

Run the code above in your browser using DataLab