Learn R Programming

nlmixr2lib (version 0.3.0)

modellib: 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)

Value

The function returns a function the model code (or NULL if the

model = NULL)

Arguments

name

character with the name of the model to load (if NULL, lists all available base models)

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 "addSd", "propSd", and "lnormSd" are accepted)

Details

This is a very first draft just to look at the proof of concept

Examples

Run this code
modellib(name = "PK_1cmt")
modellib(name = "PK_1cmt", eta = c("ka", "vc"), reserr = "addSd")
modellib(name = "PK_1cmt", reserr = "addSd")

Run the code above in your browser using DataLab