# Dataset with a single subject and additional dosing
dat <- data.frame(
ID = rep(1, 6),
EVID = c(1, 0, 0, 1, 0, 0),
ADDL = c(2, 0, 0, 0, 0, 0),
TIME = c(0, 1, 2, 3, 4, 5),
II = c(24, 0, 0, 0, 0, 0),
AMT = c(100, 0, 0, 0, 0, 0)
)
nmpkconvert(dat)
Run the code above in your browser using DataLab