Skip to main content
. 2017 Sep 15;25(3):141–146. doi: 10.12793/tcp.2017.25.3.141

Table 1. Explanation on the functions in the caffsim R package.

Class Functions Description
Single dose caffConcTime Create a concentration-time dataset of single oral dosing of caffeine.
Usage in R: caffConcTime(Weight = 20, Dose = 200, N = 20)
caffPkparam Create a dataset of pharmacokinetic parameters of single oral dosing of caffeine.
Usage in R: caffPkparam(Weight = 20, Dose = 200, N = 20)
caffPlot Plot plasma concentration-time curves of single oral dosing of caffeine.
Usage in R: caffPlot(caffConcTime(Weight = 20, Dose = 200, N = 20))
Mulitple doses caffConcTimeMulti Create a concentration-time dataset of multiple oral dosing of caffeine.
Usage in R: caffConcTimeMulti(Weight = 20, Dose = 200, N = 20, Tau = 8, Repeat = 4)
caffPkparamMulti Create a dataset of pharmacokinetic parameters of multiple oral dosing of caffeine.
Usage in R: caffPkparamMulti(Weight = 20, Dose = 200, N = 20, Tau = 8)
caffPlotMulti Plot plasma concentration-time curves of multiple oral dosing of caffeine.
Usage in R: caffPlotMulti(caffConcTimeMulti(Weight = 20, Dose = 200, N = 20, Tau = 8, Repeat = 4))
Others caffDescstat Calculate descriptive statistics of simulated pharmacokinetic parameters.
Usage in R: caffDescstat(caffPkparam(20,500))
caffOverdose Calculate a duration of toxic concentration over specified levels (40 mg/L or 80 mg/L).
Usage in R: caffOverdose(caffConcTime(Weight = 20, Dose = 200, N = 20))
caffShiny Run Shiny app to interactively simulate single and multiple dosing for plasma caffeine concentration.
Usage in R: caffShiny()
UnitTable Unit data of PK parameters.
Usage in R: UnitTable