interim (version 0.8.0)

eventCourse: Scheduling interim analyses in clinical trials for time-to-event settings

Description

Function eventCourse plots the results of function recruitment and function event.

Usage

eventCourse(r, e1 = NULL, lp = "topright")

Arguments

r

recruitment scenario calculated with function recruitment.

e1

optional. Event simulation from function event.

lp

optional. Position of legend, specified by keyword: "bottomright", "bottom", "bottomleft", "left", "topleft", "top", "topright", "right", or "center".

Details

Function eventCourse produces two plots to display results of enrollment and treatment simulations.

The first plot displays the cumulative number of centers that have been opened as well as the cumulative number of centers that have been closed, if applicable, per trial week.

The second plot displays the number of patients that have been screened and enrolled per trial week. If the parameter e1 is not NULL, then the number of events and the number of drop-outs before first event ist displayed.

See Also

event for simulating the events for a given recruitment scenario; recruitment for simulating recruitment scenarios.

Examples

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

Run the code above in your browser using DataCamp Workspace