Learn R Programming

nlmixr2lib (version 0.3.0)

addEta: Add random effects to a model

Description

Add random effects to a model

Usage

addEta(
  ui,
  eta,
  priorName = getOption("nlmixr2lib.priorEta", TRUE),
  etaCombineType = c("default", "snake", "camel", "dot", "blank")
)

Value

The model with eta added to the requested parameters

Arguments

ui

The model as a function

eta

vector with the parameters to add random effects (sometimes referred to as inter-individual variability, IIV) on

priorName

logical, if TRUE, the parameter name specified in `eta` will be used to add the eta value prior name is used instead of the left handed side of the equation.

etaCombineType

the option for the how to combine the eta with the parameter name. Can be: "default", "snake", "camel", "dot", "blank"

Author

Bill Denney, Richard Hooijmaijers & Matthew L. Fidler

Examples

Run this code
library(rxode2)
readModelDb("PK_1cmt") |> addEta("ka")

Run the code above in your browser using DataLab