sim_IQRmodel with strict output format

sim_IQRmodel() output format depends on arguments of the sim_IQRmodel call.

sim_IQRmodel_strict(simIQRmodelSpec)

Arguments

simIQRmodelSpec

Argument list for sim_IQRmodel, created by createSimIQRmodelSpec()

Value

IQRsimres with consistent format, see description

Details

  • TIME is very context dependent, eventfor explicit simtime values passed as argument.

  • ID is not always present: If the eventTable contains one ID only, or sim_IQRmodel is called without eventTable, the output an ID column does not contain

By contrast, this function has consistent output, suitable for programming.

  • TIME corresponds exactly to the input given in simtime

  • It always contains an ID column

  • It always has a simNames attribute

Author

Daniel Lill (daniel.lill@intiquan.com)

Examples

if (FALSE) { # \dontrun{
td <- tempdir()
libraryPK_IQRtools(td)
fl <- file.path(td, "ModelLibraryPK/model_2cpt_linsat_iv.txt")

model <- IQRmodel(fl)
simIQRmodelSpec1 <- createSimIQRmodelSpec(model, simtime = c(0), parameters =  c(CL = 10), dosingTable = IQRdosing(0,1,1))
simres1 <- do.call(sim_IQRmodel, simIQRmodelSpec1)
simres1_strict <- sim_IQRmodel_strict(simIQRmodelSpec = simIQRmodelSpec1)
} # }