addResErr | R Documentation |
Add residual error to a model
addResErr(ui, reserr, endpoint)
ui |
The model as a function |
reserr |
The type or types of residual error (currently
|
endpoint |
the endpoint to apply the error; will default to the first error in the model |
For reserr
, the parameter will be named with the dependent
variable from the model as a prefix. For example, if the dependent
variable in the model is Cc
, the parameter name for propSd
will become CcpropSd
.
The model with residual error modified
library(rxode2)
readModelDb("PK_1cmt") |> addResErr("addSd")
readModelDb("PK_1cmt") |> addResErr("lnormSd")
readModelDb("PK_1cmt") |> addResErr(c("addSd", "propSd"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.