treatment simulates the treatment phase base on a recruitment scenario simulated by function
treatment(r, du, dr)
recruitment scenario calculated with function
duration of treatment phase in weeks.
drop-out rate during the treatment phase.
treatment simulates the treatment period based on a given recruitment scenario.
The function assumes a common fixed treatment length for all subjects (
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.
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)
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.