eventCourse {interim} | R Documentation |
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 |
e1 |
optional. Event simulation from function |
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
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)