interim (version 0.8.0)

eventWeek: Scheduling interim analyses in clinical trials in a time-to-event setting

Description

Function eventWeek determines the week of the trial in which a certain number t of events occured.

Usage

eventWeek(t, p)

Arguments

t

result of function event.

p

number of events for which the week shall be determined.

Value

The week in which the number of events is reached.

Details

eventWeek is an auxilliary function required to assess the timing of interim analyses. It derives the week of trial in which a certain number of events occured.

The output is required for function cross, which includes the information into an existing Event diagram.

See Also

cross for plotting results of function eventWeek into an existing Event diagram.

Examples

Run this code
# NOT RUN {
x=recruitment(nc=Inf,ns=Inf,cw=4,sw=2,sf=0.3,tb=4,en=400)
x=recruitment(nc=Inf,ns=Inf,cw=4,sw=2,sf=0.3,tb=4,en=400)
y=treatment(r=x,dr=0.08,du=50)
eventCourse(r=x,e1=y)
trialWeek(t=y,p=50)
# }

Run the code above in your browser using DataLab