Simulate PK from PK data.
Currently, only 1-, 2- and 3-compartment infusion models are supported.
Arguments
- data
A data.frame of PK data.
Value
A data.frame with simulated PK data.
Examples
head(simulate_pk(data_501 |> dplyr::filter(ID == 1)))
#> ID TIME tad CENTRAL DV
#> 1 1 0.0 0.0 0.00000 0.000000
#> 2 1 0.1 0.1 19.96670 6.655568
#> 3 1 0.2 0.2 39.86696 13.288987
#> 4 1 0.3 0.3 59.70100 19.900332
#> 5 1 0.4 0.4 79.46903 26.489676
#> 6 1 0.5 0.5 99.17128 33.057092