| coef.rxUi | R Documentation |
For an rxode2 model specification (rxUi) there are no realized random
effects (etas), so coef() returns the fixed-effect (theta) estimates by
default. The random-effect variability matrix (omega) can be requested
with level="omega", or both can be returned together with level="all".
## S3 method for class 'rxUi'
coef(
object,
level = c("theta", "fixed", "omega", "random", "all", "both"),
...
)
## S3 method for class ''function''
coef(
object,
level = c("theta", "fixed", "omega", "random", "all", "both"),
...
)
object |
rxode2 ui model or a function that evaluates to one |
level |
which coefficients to return: |
... |
other parameters (currently ignored) |
depends on level: a named numeric vector of fixed effects, the
omega matrix (or NULL), or a list with both theta and omega.
Matthew L. Fidler
one.compartment <- function() {
ini({
tka <- 0.45
tcl <- 1
tv <- 3.45
eta.ka ~ 0.6
})
model({
ka <- exp(tka + eta.ka)
cl <- exp(tcl)
v <- exp(tv)
d/dt(depot) <- -ka * depot
d/dt(center) <- ka * depot - cl / v * center
cp <- center / v
})
}
ui <- one.compartment()
coef(ui)
coef(ui, level="omega")
coef(ui, level="all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.