cyclicDoses: create intermittent dosing regimen

View source: R/cyclicDoses.R

cyclicDosesR Documentation

create intermittent dosing regimen

Description

create intermittent dosing regimen

Usage

cyclicDoses(hours.of.day, cycles.days, days.total, dose)

Arguments

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

Details

  • 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.

Examples

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)

philipdelff/pmxtricks documentation built on Nov. 11, 2024, 5:16 p.m.