Description Usage Arguments Details See Also Examples
Function trialCourse
plots the results of function recruitment
and function treatment
.
1 | trialCourse(r, t1 = NULL, t2 = NULL, lp = "topright")
|
r |
recruitment scenario calculated with function |
t1 |
optional. Treatment phase simulation from function |
t2 |
optional. Treatment phase simulation from function |
lp |
optional. Position of legend, specified by keyword: "bottomright", "bottom", "bottomleft", "left", "topleft", "top", "topright", "right", or "center". |
Function trialCourse
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 at least one of the parameters t1
and t2
are not NULL
, then
the number of patients finished treatment is also displayed.
It is possible to include two different treatment scenarios into one plot. This option may for example
be used to assess the timing for specific interim analyses, i.e. t1
is used to assess when the
required number of patients for the interim analysis finished treatment while t2
is used to assess
when the required number of patients for the final analysis finished treatment.
treatment
for simulating the treatment duration for a given recruitment scenario;
recruitment
for simulating recruitment scenarios.
1 2 3 4 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.