[Experimental]

Obtain in matrix form the OMEGA matrix. This is primarily to feed into other packages such as mrgsolve.

omega_matrix(r)

Arguments

r

An nm object.

Value

A matrix object.

Examples


## requires NONMEM to be installed
if (FALSE) {

## matrix of initial estimates
m1 %>% omega_matrix()

## matrix of final estimates
m1 %>%
  update_parameters() %>%
  omega_matrix()
}