treatment: Scheduling interim analyses in clinical trials

Description Usage Arguments Details Value See Also Examples

Description

Function treatment simulates the treatment phase base on a recruitment scenario simulated by function recruitment.

Usage

1
treatment(r, du, dr)

Arguments

r

recruitment scenario calculated with function recruitment.

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

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

1
2
3
4
5
6
7
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)

interim documentation built on June 24, 2019, 9:03 a.m.