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 missing
omat(.x, ...)
# S4 method for matrix
omat(.x, ..., labels = list())
# S4 method for `NULL`
omat(.x, ...)
# S4 method for list
omat(.x, ...)
# S4 method for omegalist
omat(.x, ...)
# S4 method for mrgmod
omat(.x, ..., make = FALSE, open = FALSE)
# S4 method for mrgsims
omat(.x, make = FALSE, ...)
a matrix, list of matrices or matlist
object
passed to other functions, including modMATRIX
character vector of names for $OMEGA
elements; must
be equal to number of rows/columns in the matrix
logical; if TRUE, matrix list is rendered into a single matrix
passed to merge.list
matlist
object
# NOT RUN {
## 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)
# }
# NOT RUN {
$OMEGA
1 2 3
$OMEGA \@block
1 0.1 2
$OMEGA \@cor
\@ prefix ETA_
\@ labels CL VC KA
0.1
0.67 0.2
0 0 0.3
# }
Run the code above in your browser using DataLab