Learn R Programming

microsamplingDesign (version 1.0.8)

pkCurveStat: calculate summary statistics from a pkCurve

Description

implemented statistics:

  • auc area under the curve , between first and last time points

  • cMax maximum concentration

  • tMax time at maximum concentration

Usage

pkCurveStat_auc(concentration, timePoints)

pkCurveStat_cMax(concentration, timePoints)

pkCurveStat_tMax(concentration, timePoints)

Arguments

concentration

numeric vector of concentrations corresponding to timePoints

timePoints

time and concentration

Value

a numeric value

Examples

Run this code
# NOT RUN {
  ## toy example
  timeToy               <-  1:2
  concToy               <-  1:2 
 
  pkCurveStat_auc( concToy ,  timeToy ) 
  pkCurveStat_cMax( concToy ,  timeToy  )
  pkCurveStat_tMax( concToy ,  timeToy  )

  ## real example
  times                 <-  c(0 , 1.5 , 2:10)
  concentration         <-  getExamplePkCurve( times )
  pkCurveStat_auc( concentration , times  ) 
  pkCurveStat_cMax( concentration , times   )
  pkCurveStat_tMax( concentration , times   )

# }

Run the code above in your browser using DataLab