Create target object
create_target_design.Rd
This function helps the user define the PKPD target for a simulation. When a minimum value and maximum value are supplied, the algorithm targets the mid- point. Alternatively, a single midpoint can be supplied.
Usage
create_target_design(
targettype = mipd_target_types(),
targetmin = NULL,
targetmax = NULL,
targetvalue = NULL,
single_point_variation = 0.2,
time = NULL,
when = NULL,
offset = NULL,
at = NULL,
anchor = c("dose", "day")
)
Arguments
- targettype
target type, one of accepted types (see
mipd_target_types()
)- targetmin
minimum value acceptable, must be specified with
targetmax
- targetmax
maximum value acceptable, must be specified with
targetmin
- targetvalue
single value for a target, overrides min and max values.
- single_point_variation
acceptable variation from targetvalue. By default 20%. Considered for assessment of target attainment a posteriori, not used for dose-finding logic.
- time
a vector of numeric values at which to measure and optimize the target. In most cases
time
is not required as argument, and will be inferred from the thetargettype
. Ifat
values are supplied, the target times will be calculated adaptively during the trial. Theat
determine which dose is used as reference anchor. andtime
will be relative to the specifiedat
. If noat
values are specified, thetime
values will be used as the fixed absolute target times in the simulated trial.- when
character vector of same length as
time
(or single value) determining how to interpret the provided targettime
. IfNULL
will use the dose time as offset (default). Other options arecmax
orpeak
, which will use the end of infusion as the base for thetime
, orcmin
ortrough
, which will use the time of next dose as the offset.- offset
offset from a
when
moment (dose, peak, or trough).- at
numeric vector of the dose or day number to "anchor" the target times to. Vector needs to be of same length as
t
. Ifanchor
is set today
, then the first dose in that day is used. If later doses in the day are preferred, the anchor can also be specified fractionally, e.g.1.5
will use the time of the first dose in the second half of the 1st day.- anchor
either
day
ordose
. Single value required, i.e. anchor types cannot be mixed.
Examples
## Target cumulative AUC, always exactly at 72 hours:
create_target_design(
targettype = "cum_auc",
targetvalue = 90,
time = 72
)
#> $type
#> [1] "cum_auc"
#>
#> $value
#> [1] 90
#>
#> $min
#> [1] 72
#>
#> $max
#> [1] 108
#>
#> $scheme
#> base offset at anchor
#> 1 dose 72 1 dose
#>
## Target trough concentration at trough after dose 4.
create_target_design(
targettype = "cmin",
targetvalue = 15,
at = 4,
anchor = "dose"
)
#> $type
#> [1] "cmin"
#>
#> $value
#> [1] 15
#>
#> $min
#> [1] 12
#>
#> $max
#> [1] 18
#>
#> $scheme
#> base offset at anchor scatter
#> 1 cmin 0 4 dose 0
#>
## Target AUC24 over day 4
create_target_design(
targettype = "auc24",
targetvalue = 500,
at = 4,
anchor = "day"
)
#> $type
#> [1] "auc24"
#>
#> $value
#> [1] 500
#>
#> $min
#> [1] 400
#>
#> $max
#> [1] 600
#>
#> $scheme
#> base offset at anchor scatter
#> 1 dose 24 4 day 0
#>