caffConcTime: Create a dataset of the concentration-time curve of single...

Description Usage Arguments Value See Also Examples

Description

caffConcTime will create a dataset of the concentration-time curve

Usage

1
caffConcTime(Weight, Dose, N = 20)

Arguments

Weight

Body weight (kg)

Dose

Dose of single caffeine (mg)

N

The number of simulated subjects

Value

The dataset of concentration and time of simulated subjects

See Also

https://asancpt.github.io/caffsim

Examples

1
2
caffConcTime(Weight = 20, Dose = 200, N = 20)
caffConcTime(20, 200)

Example output

# A tibble: 4,820 x 3
   Subject  Time  Conc
     <dbl> <dbl> <dbl>
 1       1   0    0   
 2       1   0.1  4.26
 3       1   0.2  7.34
 4       1   0.3  9.53
 5       1   0.4 11.1 
 6       1   0.5 12.2 
 7       1   0.6 12.9 
 8       1   0.7 13.4 
 9       1   0.8 13.7 
10       1   0.9 13.9 
# ... with 4,810 more rows
# A tibble: 4,820 x 3
   Subject  Time  Conc
     <dbl> <dbl> <dbl>
 1       1   0     0  
 2       1   0.1  10.4
 3       1   0.2  12.9
 4       1   0.3  13.3
 5       1   0.4  13.2
 6       1   0.5  13.0
 7       1   0.6  12.8
 8       1   0.7  12.5
 9       1   0.8  12.2
10       1   0.9  12.0
# ... with 4,810 more rows

caffsim documentation built on May 2, 2019, 3:45 p.m.