modellib {nlmixr2lib} | R Documentation |
Get the model from the model library
Description
This function gets a model from the available model library
Usage
modellib(name = NULL, eta = NULL, reserr = NULL)
Arguments
name |
character with the name of the model to load (if |
eta |
vector with the parameters to add random effects (sometimes referred to as inter-individual variability, IIV) on |
reserr |
The type or types of residual error (currently |
Details
This is a very first draft just to look at the proof of concept
Value
The function returns a function the model code (or NULL
if the
model = NULL
)
Examples
modellib(name="PK_1cmt")
modellib(name="PK_1cmt", eta = c("ka", "vc"), reserr = "addSd")
modellib(name="PK_1cmt", reserr = "addSd")
[Package nlmixr2lib version 0.2.0 Index]