cyclicDoses | R Documentation |
create intermittent dosing regimen
cyclicDoses(hours.of.day, cycles.days, days.total, dose)
hours.of.day |
dosing time of day (hours) |
cycles.days |
list of numeric vectors. The vectors represent nested regimens. See details. |
days.total |
Total number of days for the regimen to continue. |
dose |
Will be copied to amt column |
list(c(4,3)) means three days on, four days off.
list(c(4,3),c(3,1)) means three days on, four days off for three cycles, then one cycle (of 4+3 days) off.
Complicated like ph2
dt <- cyclicDoseTab(c(0,12),cycles.days=list(c(4,3),c(21,7)),days.total=56,dose=400)
ggplot(dt,aes(times/24,amt))+geom_point()+geom_vline(xintercept=c(0,28,56))
## using cyclicDose to create a complex dosing regimen with rest days and rest weeks
dos1=cyclicDoses(c(0,12),cycles.days=list(c(4,3),c(21,7)),days.total=56,dose=400)
NMcreateDoses(TIME=dos1$TIME,AMT=dos1$AMT,CMT=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.