addEta {nlmixr2lib} | R Documentation |
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")
)
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" |
Value
The model with eta added to the requested parameters
Author(s)
Bill Denney, Richard Hooijmaijers & Matthew L. Fidler
Examples
library(rxode2)
readModelDb("PK_1cmt") |> addEta("ka")
[Package nlmixr2lib version 0.3.0 Index]