Determine time of maximum observed PK concentration

Description

Input restrictions are:

  1. the conc and time must be the same length,

  2. the time may have no NAs,

NA will be returned if:

  1. the length of conc and time is 0

  2. all conc is 0 or NA

Usage

1
2
pk.calc.tmax(conc, time, options = list(),
  first.tmax = PKNCA.choose.option("first.tmax", options), check = TRUE)

Arguments

conc

Concentration measured

time

Time of concentration measurement

options

List of changes to the default PKNCA.options for calculations.

first.tmax

If there is more than time that matches the maximum concentration, should the first be considered as Tmax? If not, then the last is considered Tmax.

check

Run check.conc.time?

Value

the time of the maximum concentration

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.