View source: R/001-add.interval.col.R
add.interval.col | R Documentation |
Add columns for calculations within PKNCA intervals
add.interval.col(
name,
FUN,
values = c(FALSE, TRUE),
unit_type,
pretty_name,
depends = NULL,
desc = "",
sparse = FALSE,
formalsmap = list(),
datatype = c("interval", "individual", "population")
)
name |
The column name as a character string |
FUN |
The function to run (as a character string) or |
values |
Valid values for the column |
unit_type |
The type of units to use for assigning and converting units. |
pretty_name |
The name of the parameter to use for printing in summary tables with units. (If an analysis does not include units, then the normal name is used.) |
depends |
Character vector of columns that must be run before this column. |
desc |
A human-readable description of the parameter (<=40 characters to comply with SDTM) |
sparse |
Is the calculation for sparse PK? |
formalsmap |
A named list mapping parameter names in the function call
to NCA parameter names. See the details for information on use of
|
datatype |
The type of data used for the calculation |
The formalsmap
argument enables mapping some alternate formal
argument names to parameters. It is used to generalize functions that may
use multiple similar arguments (such as the variants of mean residence time).
The names of the list should correspond to function formal parameter names
and the values should be one of the following:
For the current interval:
The value of the parameter calculated for the current interval.
Concentration measurements for the current interval.
Times associated with concentration measurements for the current interval (values start at 0 at the beginning of the current interval).
Volume associated with concentration measurements for the current interval (typically applies for excretion parameters like urine).
Durations associated with concentration measurements for the current interval.
Dose amounts assocuated with the current interval.
Time of dose start associated with the current interval (values start at 0 at the beginning of the current interval).
Duration of dose (typically infusion duration) for doses in the current interval.
Route of dosing for the current interval.
Time of interval start.
Time of interval end.
PKNCA.options governing calculations.
For the current group:
Concentration measurements for the current group.
Times associated with concentration measurements for the current group (values start at 0 at the beginning of the current interval).
Volume associated with concentration measurements for the current interval (typically applies for excretion parameters like urine).
Durations assocuated with concentration measurements for the current group.
Dose amounts assocuated with the current group.
Time of dose start associated with the current group (values start at 0 at the beginning of the current interval).
Duration of dose (typically infusion duration) for doses in the current group.
Route of dosing for the current group.
NULL (Calling this function has a side effect of changing the available intervals for calculations)
Other Interval specifications:
check.interval.deps()
,
check.interval.specification()
,
choose.auc.intervals()
,
get.interval.cols()
,
get.parameter.deps()
## Not run:
add.interval.col("cmax",
FUN="pk.calc.cmax",
values=c(FALSE, TRUE),
unit_type="conc",
pretty_name="Cmax",
desc="Maximum observed concentration")
add.interval.col("cmax.dn",
FUN="pk.calc.dn",
values=c(FALSE, TRUE),
unit_type="conc_dosenorm",
pretty_name="Cmax (dose-normalized)",
desc="Maximum observed concentration, dose normalized",
formalsmap=list(parameter="cmax"),
depends="cmax")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.