system_set_tt_bolus: Actual Function Called by 'SI_TT_BOLUS'

Description Usage Arguments Value

View source: R/ubiquity.r

Description

The prototype function SI_TT_BOLUS provides an interface to this function. Based on the input from SI_TT_BOLUS bolus inputs will be updated for the current titration time.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
system_set_tt_bolus(
  cfg,
  state,
  values,
  times,
  tt_ts,
  tsinfo,
  repdose = "none",
  interval = 1,
  number = 0
)

Arguments

cfg

ubiquity system object

state

dosing state/compartment (Defined in <B:events>)

values

vector of dosing amounts (in dosing units defined by <B:events>)

times

vector of dosing times relative to the current titration time (in # time units defiend by <B:times>)

tt_ts

list of timescale values for the current titration time

tsinfo

list with timescale information for inputs (bolus, rates, etc)

repdose

"none", "last", "all"

interval

interval to repeat in the units defined in <B:times>

number

number of times to repeat

Value

ubiquity system object with the bolus dosing updated.


ubiquity documentation built on Sept. 5, 2021, 5:15 p.m.