R/caffConcTime.R
caffConcTime.Rd
caffConcTime
will create a dataset of the concentration-time curve.
caffConcTime(Weight, Dose, N = 20)
Weight | Body weight (kg) |
---|---|
Dose | Dose of single caffeine (mg) |
N | The number of simulated subjects |
The dataset of concentration and time of simulated subjects
caffConcTime(Weight = 20, Dose = 200, N = 20)#> # A tibble: 4,820 x 3 #> Subject Time Conc #> <dbl> <dbl> <dbl> #> 1 1 0 0 #> 2 1 0.1 1.95 #> 3 1 0.2 3.67 #> 4 1 0.3 5.18 #> 5 1 0.4 6.51 #> 6 1 0.5 7.67 #> 7 1 0.6 8.68 #> 8 1 0.7 9.56 #> 9 1 0.8 10.3 #> 10 1 0.9 11.0 #> # ... with 4,810 more rowscaffConcTime(20, 200)#> # A tibble: 4,820 x 3 #> Subject Time Conc #> <dbl> <dbl> <dbl> #> 1 1 0 0 #> 2 1 0.1 9.04 #> 3 1 0.2 11.5 #> 4 1 0.3 12.1 #> 5 1 0.4 12.2 #> 6 1 0.5 12.2 #> 7 1 0.6 12.0 #> 8 1 0.7 11.9 #> 9 1 0.8 11.8 #> 10 1 0.9 11.7 #> # ... with 4,810 more rows