Comparing IQRmodel with IQRsysModel simulation

Can be used for unit tests but as well for other purposes. It will compare all state variables and all OUTPUT variables. If a model does not contain an OUTPUT then an OUTPUT1 will be added and assigned the sum of all variables. If a model does not contain an INPUT then +INPUT1 will be added to the first ODE in the model. This OUTPUT and INPUT definition is needed as IQRsysModels require the presence of at least one INPUT and OUTPUT.

compare_IQRmodel_IQRsysModel_simulation(
  model,
  simtime = NULL,
  dosingTable = NULL,
  parameters = NULL,
  filename = NULL,
  absTol = 1e-12,
  relTol = 1e-12
)

Arguments

model

IQRmodel or path to IQRmodel file

simtime

Numeric vector with simulation time. If not provided a simtime vector of seq(0,20,1) will be used.

dosingTable

IQRdosing

parameters

Named numeric vector of parameters for simulation

filename

If filename provided comparisons will be plotted into a PDF

absTol

absolute tolerance for simulator

relTol

relative tolerance for simulator

Value

Object CompareIQRmodelIQRsysModel with relevant information