treatment {interim} | R Documentation |
Scheduling interim analyses in clinical trials
Description
Function treatment
simulates the treatment phase base on a recruitment scenario simulated by function recruitment
.
Usage
treatment(r, du, dr)
Arguments
r |
recruitment scenario calculated with function |
du |
duration of treatment phase in weeks. |
dr |
drop-out rate during the treatment phase. |
Details
treatment
simulates the treatment period based on a given recruitment scenario.
The function assumes a common fixed treatment length for all subjects (du
).
The drop-out rate may be included via dr
. If drop-out rates are available
only for different time periods, e.g. annual rates, function convertedRate
can be used to convert
the rate to a drop-out rate for the respective treatment duration.
Value
-
treatment
returns a list of vectors with the following components: -
patients
a vector with the (cumulative) number of patients who finished treatment -
weeksOfTrial
a vector with the corresponding trial week when patients have finished treatment (with start of site openings as reference start)
See Also
recruitment
for simulating recruitment scenarios;
trialCourse
for plots of recruitment and treatment scenarios;
convertedRate
for converting drop-out rates for different time periods.
Examples
x=recruitment(nc=Inf,ns=Inf,cw=4,sw=2,sf=0.3,tb=4,en=400)
y=treatment(r=x,du=26,dr=0.2)
z=treatment(r=x,du=52,dr=0.2)
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)