predict.poppkmod | R Documentation |
Predict concentrations from a pkmod object - can be a user defined function
## S3 method for class 'poppkmod' predict(object, inf, tms, ...)
object |
An object with class poppkmod. |
inf |
A matrix with columns "begin","end","inf_rate" indicating when infusions should be administered. Can be created by 'inf_manual' or 'inf_tci'. |
tms |
Times at which to calculate predicted concentrations. |
... |
List or vector of values to be passed on to predict.pkmod. |
Matrix of predicted concentrations associated with a poppkmod object and and infusion schedule.
# dosing schedule dose <- inf_manual(inf_tms = c(0,0.5,4,4.5,10), inf_rate = c(100,0,80,0,0)) # poppkmod object data <- data.frame(ID = 1:5, AGE = seq(20,60,by=10), TBW = seq(60,80,by=5), HGT = seq(150,190,by=10), MALE = c(TRUE,TRUE,FALSE,FALSE,FALSE)) elvd_mod <- poppkmod(data, drug = "ppf", model = "eleveld") predict(elvd_mod, inf = dose, tms = c(1.5,2.5,3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.