formulation: Create a new formulation object.

Description Usage Arguments Value See Also

View source: R/metadata.R

Description

Create a new formulation object.

Usage

1
2
3
4
5
6
7
formulation(
  name,
  unit,
  dosing_interval = 24,
  default_value = 1,
  round_function = function(dose) {     dose }
)

Arguments

name

the formulation name

unit

the unit

dosing_interval

the dosing interval in hours, 24h is the default value

default_value

the default dose value, same unit as the one provided

round_function

the rounding function to round the recommended dose, by default doses are not rounded

Value

a tdmore_formulation object

See Also

Other metadata: covariate(), getDosingInterval(), getMetadataByClass(), getMetadataByName(), metadata(), output(), target()


tdmore-dev/tdmore documentation built on Jan. 1, 2022, 3:21 a.m.