omega | R Documentation |
The primary function is omat()
that can be used to both get the
$OMEGA
matrices out of a model object and to update $OMEGA
matrices in a model object.
omat(.x, ...)
## S4 method for signature 'missing'
omat(.x, ...)
## S4 method for signature 'matrix'
omat(.x, ..., labels = list())
## S4 method for signature 'NULL'
omat(.x, ...)
## S4 method for signature 'list'
omat(.x, ...)
## S4 method for signature 'omegalist'
omat(.x, ...)
## S4 method for signature 'mrgmod'
omat(.x, ..., make = FALSE, open = FALSE)
## S4 method for signature 'mrgsims'
omat(.x, make = FALSE, ...)
.x |
a matrix, list of matrices or |
... |
passed to other functions, including |
labels |
character vector of names for |
make |
logical; if |
open |
passed to |
x |
|
smat()
, dmat()
, bmat()
, cmat()
# example("omega")
mat1 <- matrix(1)
mat2 <- diag(c(1,2,3))
mat3 <- matrix(c(0.1, 0.002, 0.002, 0.5), 2,2)
mat4 <- dmat(0.1, 0.2, 0.3, 0.4)
omat(mat1)
omat(mat1, mat2, mat3)
omat(A = mat1, B = mat2, C = mat3)
mod <- mrgsolve::house() %>% omat(mat4)
omat(mod)
omat(mod, make = TRUE)
as.matrix(omat(mod))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.