View source: R/nm.insert.evid2amt0.r
nm.insert.evid2amt0 | R Documentation |
To model transit compartment absorption this function allows to turn a NONMEM datset into one EVID = 2 & AMT = 0 records before each dose given.
nm.insert.evid2amt0(data, ..., quiet = TRUE)
data |
NONMEM data.frame, should contain variables |
... |
(unquoted) columns to sort the result by |
quiet |
when TRUE (default) silences the messages returned |
Data frame with an EVID = 2 and AMT = 0 record preceding each AMT>0 record
nm.insert.dose.multiple.compartments
library(dplyr)
nmData = example.NONMEM.dataset(TIME = seq(0,24,4))
nmData2 = nm.insert.evid2amt0(data = nmData, ID, TIME, -EVID)
tbl_df(nmData2[, c('ID','TIME','EVID','AMT','DV')])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.